Add Symfony 8 support and test against all LTS versions #253
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: Code Tests | |
| on: | |
| pull_request: null | |
| push: | |
| branches: | |
| - '3.*' | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| php: ['8.1', '8.2', '8.3', '8.4'] | |
| deps: ['stable'] | |
| symfony: [ '' ] # Don't lock to a specific symfony version by default | |
| include: | |
| # Test lowest dependencies | |
| - deps: 'lowest' | |
| php: '8.1' | |
| # Test latest php with LTS version. | |
| - deps: 'lts' | |
| php: '8.4' | |
| symfony: '^6.4' | |
| # Test latest php with LTS version. | |
| - deps: 'lts' | |
| php: '8.4' | |
| symfony: '^7.4' | |
| name: "${{ matrix.deps }} | PHP ${{ matrix.php }} ${{ matrix.symfony != '' && format('| Symfony {0}', matrix.symfony) || '' }}" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set-up env variables | |
| run: | | |
| case "${{ matrix.deps }}" in | |
| "lowest") | |
| echo "COMPOSER_FLAGS=--prefer-lowest" >> $GITHUB_ENV | |
| echo "SYMFONY_REQUIRE=$(echo '${{ matrix.symfony }}')" >> $GITHUB_ENV | |
| ;; | |
| *) | |
| echo "SYMFONY_REQUIRE=$(echo '${{ matrix.symfony }}')" >> $GITHUB_ENV | |
| esac | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: pdo_sqlite, pdo_mysql, pdo_pgsql | |
| tools: flex | |
| coverage: none | |
| - run: composer update --prefer-dist --no-progress $COMPOSER_FLAGS | |
| - run: vendor/bin/phpunit |