Test against PHP 8.5 #8
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: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: ['5.x', '4.x', '3.x'] | |
| push: | |
| branches: ['5.x', '4.x', '3.x'] | |
| jobs: | |
| phpunit: | |
| name: PHPUnit (PHP ${{ matrix.php-version }} - Symfony ${{ matrix.symfony-version }}) | |
| runs-on: ubuntu-24.04 | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | |
| strategy: | |
| matrix: | |
| php-version: | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| - '8.5' | |
| symfony-version: | |
| - '6.4.*' | |
| - '7.2.*' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 2 | |
| - name: Install PHP with pcov | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: pcov | |
| php-version: ${{ matrix.php-version }} | |
| - name: Install Imagemagick | |
| run: sudo apt-get update && sudo apt-get install -y imagemagick | |
| - name: Install Symfony Flex | |
| run: | | |
| composer config --global --no-plugins allow-plugins.symfony/flex true | |
| composer global require --no-progress --no-scripts --no-plugins symfony/flex | |
| - name: Install Composer dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Run PHPUnit | |
| run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v5 | |
| if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*' |