Upgrade PHP/Twig/PHPUnit versions & drop support for Sf5/PHP7 #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [pull_request] | |
jobs: | |
code_style: | |
runs-on: [ubuntu-latest] | |
name: Code style | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install PHP dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run PHP CS Fixer | |
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run --verbose --stop-on-violation | |
code_analyze: | |
runs-on: [ubuntu-latest] | |
name: Code analyze | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install PHP dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run PHPStan | |
run: composer analyse | |
- name: Run Rector | |
run: ./vendor/bin/rector process --dry-run --no-progress-bar | |
tests: | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['8.1', '8.2', '8.3'] | |
runs-on: ${{ matrix.operating-system }} | |
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: xml, dom, mbstring | |
coverage: xdebug | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install PHP dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run test suite | |
run: composer tests |