Skip to content

Update rector/rector requirement from 1.2.3 to 1.2.4 #1288

Update rector/rector requirement from 1.2.3 to 1.2.4

Update rector/rector requirement from 1.2.3 to 1.2.4 #1288

Workflow file for this run

name: CI Check
on:
pull_request: null
push:
branches:
- 5.x
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.3']
name: PHP ${{ matrix.php }} tests
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: |
composer-php-${{ matrix.php }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Composer install
run: composer install --ansi
- name: Execute tests
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Upload coverage results to Coveralls
if: ${{ matrix.php == '8.3' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
check:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.3']
name: PHP ${{ matrix.php }} code check
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: |
composer-php-${{ matrix.php }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Composer install
run: composer install --ansi
# - name: Code style check
# run: composer cs-check
- name: PhpStan check
run: composer bug-check
- name: Psalm check
run: composer psalm
- name: Rector check
run: composer rector-check
- name: Benchmark
run: composer benchmark
- name: Infection check
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
run: vendor/bin/infection --threads=4