Allow Symfony 8 to be used, bump requirements to currently supported Symfony releases #147
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| PHPUnit: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - { php-version: 8.1, symfony-version: '', orm-version: '', dependency-version: prefer-lowest } | |
| - { php-version: 8.3, symfony-version: 6.4.*, orm-version: '^2.20', dependency-version: '' } | |
| - { php-version: 8.3, symfony-version: 6.4.*, orm-version: '^3.0', dependency-version: '' } | |
| - { php-version: 8.4, symfony-version: 7.*, orm-version: '^2.20', dependency-version: '' } | |
| - { php-version: 8.4, symfony-version: 7.*, orm-version: '^3.0', dependency-version: '' } | |
| - { php-version: 8.4, symfony-version: 8.*, orm-version: '^3.0', dependency-version: '' } | |
| name: PHPUnit (PHP ${{matrix.php-version}}, Symfony version constraint ${{ matrix.symfony-version || 'none' }}, Doctrine ORM version constraint ${{ matrix.orm-version || 'none' }}, ${{ matrix.dependency-version || 'prefer-stable' }}) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: none | |
| tools: composer:v2, flex | |
| - uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ matrix.orm-version }}-${{ matrix.dependency-version }}-${{ hashFiles('composer.json') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ matrix.orm-version }}-${{ matrix.dependency-version }}- | |
| - run: composer require --no-update doctrine/orm '${{ matrix.orm-version }}' --no-interaction --no-scripts --no-progress --ansi | |
| if: matrix.orm-version != '' | |
| - run: composer update --no-interaction --no-scripts --no-progress --ansi --${{ matrix.dependency-version }} | |
| env: | |
| SYMFONY_REQUIRE: ${{ matrix.symfony-version }} | |
| COMPOSER_NO_SECURITY_BLOCKING: 1 | |
| - run: composer show | |
| - run: vendor/bin/phpunit --display-warnings --display-deprecations |