Really test against Symfony dev versions #60
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: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: ['2.x', '1.x'] | |
| push: | |
| branches: ['2.x', '1.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.3.*' | |
| - '7.4.x-dev' | |
| include: | |
| - php-version: '8.4' | |
| symfony-version: '8.0.x-dev' | |
| - php-version: '8.5' | |
| symfony-version: '8.0.x-dev' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: zip | |
| coverage: pcov | |
| tools: flex | |
| - name: Configure Composer minimum-stability for dev versions | |
| if: contains(matrix.symfony-version, 'dev') | |
| run: composer config minimum-stability dev | |
| - name: Install Composer dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Setup Git | |
| run: | | |
| git config --global init.defaultBranch main | |
| git config --global user.email git-wrapper@leapt.dev | |
| git config --global user.name "Leapt Git Wrapper" | |
| - name: Run PHPUnit | |
| run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| if: matrix.php-version == '8.2' && matrix.symfony-version == '6.4.*' |