Update phpunit/phpunit requirement from ^9.5 to ^11.4 #267
Workflow file for this run
This file contains 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: Test | |
on: | |
push: | |
branches: | |
- 4.x | |
- master | |
pull_request: | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
jobs: | |
test: | |
name: PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} + ${{ matrix.variant }} | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.allowed-to-fail }} | |
strategy: | |
matrix: | |
php-version: | |
- '8.0' | |
- '8.1' | |
dependencies: [highest] | |
allowed-to-fail: [false] | |
variant: [normal] | |
include: | |
- php-version: '8.0' | |
dependencies: highest | |
allowed-to-fail: false | |
variant: 'symfony/symfony:"5.4.*"' | |
- php-version: '8.1' | |
dependencies: highest | |
allowed-to-fail: true | |
variant: 'symfony/symfony:"6.0.*"' | |
- php-version: '8.1' | |
dependencies: highest | |
allowed-to-fail: false | |
variant: 'vich/uploader-bundle' | |
- php-version: '8.1' | |
dependencies: highest | |
allowed-to-fail: false | |
variant: normal | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: pcov | |
tools: composer:v2 | |
- name: Add PHPUnit matcher | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: Configuration required for PHP 8.1 | |
if: matrix.php-version == '8.1' | |
run: composer config platform.php 8.0.99 | |
- name: Install variant | |
if: matrix.variant != 'normal' | |
run: composer require ${{ matrix.variant }} --no-update | |
- name: Install maker | |
run: composer require symfony/maker-bundle --no-update | |
- name: Install doctrine/orm | |
run: composer require doctrine/orm --no-update | |
- name: "Install Composer dependencies (${{ matrix.dependencies }})" | |
uses: "ramsey/composer-install@v1" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
composer-options: "--prefer-dist --prefer-stable" | |
- name: Run Tests with "vich/uploader-bundle" | |
if: matrix.variant == 'vich/uploader-bundle' | |
run: make test_with_vichuploaderbundle | |
- name: Run Tests | |
if: matrix.variant != 'vich/uploader-bundle' | |
run: make test |