chore: Use the latest PHPUnit wherever possible

See https://github.com/phpstan/phpstan-symfony/pull/162
This commit is contained in:
Hugo Alliaume 2021-05-16 14:15:56 +02:00 committed by Ondřej Mirtes
parent 0840ee4b48
commit dff3ee149b
2 changed files with 10 additions and 11 deletions

View File

@ -38,10 +38,9 @@ jobs:
- name: "Install dependencies"
run: "composer install --no-interaction --no-progress --no-suggest"
- name: "Update PHPUnit"
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
- name: "Lint"
run: "make lint"
@ -108,9 +107,9 @@ jobs:
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"
- name: "Update PHPUnit"
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
- name: "Tests"
run: "make tests"
@ -144,9 +143,9 @@ jobs:
- name: "Install dependencies"
run: "composer update --no-interaction --no-progress --no-suggest"
- name: "Update PHPUnit"
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
- name: "PHPStan"
run: "make phpstan"

View File

@ -10,7 +10,7 @@
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.60",
"phpstan/phpstan-strict-rules": "^0.12.5",
"phpunit/phpunit": "^7.5.20",
"phpunit/phpunit": "^9.5",
"symfony/process": "^5.2"
},
"config": {