Skip to content

Commit e0e52bf

Browse files
Kocalondrejmirtes
authored andcommitted
chore: Use the latest PHPUnit wherever possible, use PHP 8.0 for PHPCS
See phpstan/phpstan-symfony#162
1 parent 3182946 commit e0e52bf

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/build.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ jobs:
3838
- name: "Install dependencies"
3939
run: "composer install --no-interaction --no-progress --no-suggest"
4040

41-
- name: "Update PHPUnit"
42-
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
43-
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
44-
41+
- name: "Downgrade PHPUnit"
42+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
43+
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
4544

4645
- name: "Lint"
4746
run: "make lint"
@@ -59,7 +58,7 @@ jobs:
5958
uses: "shivammathur/setup-php@v2"
6059
with:
6160
coverage: "none"
62-
php-version: "7.4"
61+
php-version: "8.0"
6362

6463
- name: "Validate Composer"
6564
run: "composer validate"
@@ -108,9 +107,9 @@ jobs:
108107
if: ${{ matrix.dependencies == 'highest' }}
109108
run: "composer update --no-interaction --no-progress --no-suggest"
110109

111-
- name: "Update PHPUnit"
112-
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
113-
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
110+
- name: "Downgrade PHPUnit"
111+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
112+
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
114113

115114
- name: "Tests"
116115
run: "make tests"
@@ -152,9 +151,9 @@ jobs:
152151
if: ${{ matrix.dependencies == 'highest' }}
153152
run: "composer update --no-interaction --no-progress --no-suggest"
154153

155-
- name: "Update PHPUnit"
156-
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
157-
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
154+
- name: "Downgrade PHPUnit"
155+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
156+
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
158157

159158
- name: "PHPStan"
160159
run: "make phpstan"

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"php-parallel-lint/php-parallel-lint": "^1.2",
1515
"phpstan/phpstan-phpunit": "^0.12.16",
1616
"phpstan/phpstan-strict-rules": "^0.12.5",
17-
"phpunit/phpunit": "^7.5.20"
17+
"phpunit/phpunit": "^9.5"
1818
},
1919
"config": {
2020
"platform": {

0 commit comments

Comments
 (0)