Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 35777c0

Browse files
committed
chore: Use the latest PHPUnit wherever possible
See phpstan/phpstan-symfony#162
1 parent 0840ee4 commit 35777c0

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

‎.github/workflows/build.yml‎

Lines changed: 9 additions & 10 deletions
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"
@@ -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"
@@ -144,9 +143,9 @@ jobs:
144143
- name: "Install dependencies"
145144
run: "composer update --no-interaction --no-progress --no-suggest"
146145

147-
- name: "Update PHPUnit"
148-
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
149-
run: "composer require --dev phpunit/phpunit:'^9.5' --update-with-dependencies"
146+
- name: "Downgrade PHPUnit"
147+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
148+
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
150149

151150
- name: "PHPStan"
152151
run: "make phpstan"

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"phpstan/extension-installer": "^1.0",
1111
"phpstan/phpstan": "^0.12.60",
1212
"phpstan/phpstan-strict-rules": "^0.12.5",
13-
"phpunit/phpunit": "^7.5.20",
13+
"phpunit/phpunit": "^9.5",
1414
"symfony/process": "^5.2"
1515
},
1616
"config": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /