Add Symfony 8 support #27
Workflow file for this run
This file contains hidden or 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: | |
| branches: [ main ] | |
| jobs: | |
| tests: | |
| name: tests (PHP ${{ matrix.php-version }}) (Symfony ${{ matrix.symfony-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 10 | |
| fail-fast: false | |
| matrix: | |
| php-version: [ '8.1', '8.2', '8.3', '8.4' ] | |
| symfony-version: [ '6.4.*', '7.2.*' ] | |
| exclude: | |
| - php-version: '8.1' | |
| symfony-version: '7.2.*' | |
| include: | |
| - php-version: '8.4' | |
| symfony-version: '8.0.x-BETA1' | |
| minimum-stability: 'beta' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 'Set up PHP' | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: xdebug | |
| tools: composer:2.8, flex | |
| - if: matrix.minimum-stability | |
| name: 'Set minimum-stability for Composer' | |
| run: composer config minimum-stability ${{ matrix.minimum-stability }} | |
| - name: 'Install Composer dependencies' | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | |
| uses: 'ramsey/composer-install@v3' | |
| with: | |
| composer-options: '--optimize-autoloader' | |
| - name: 'Run PHP-CS-Fixer' | |
| run: PHP_CS_FIXER_IGNORE_ENV=1 composer cs | |
| - name: 'Run PHPUnit' | |
| run: composer test |