Fix tests: make data providers static (required by test framework v11) #5
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: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| tests: | |
| name: PHP ${{ matrix.php }} / Symfony ${{ matrix.symfony }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.2', '8.3', '8.4'] | |
| symfony: ['6.4.*', '7.1.*', '7.2.*'] | |
| include: | |
| # Symfony 8 requires PHP 8.4+ | |
| - php: '8.4' | |
| symfony: '8.0.*' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: gd, bcmath | |
| coverage: none | |
| - name: Install Symfony ${{ matrix.symfony }} | |
| run: | | |
| composer require --no-update symfony/framework-bundle:${{ matrix.symfony }} | |
| composer require --no-update symfony/twig-bundle:${{ matrix.symfony }} | |
| composer require --no-update symfony/options-resolver:${{ matrix.symfony }} | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run tests | |
| run: vendor/bin/phpunit |