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 c434fd5

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 b655a3a commit c434fd5

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

‎.github/workflows/build.yml‎

Lines changed: 10 additions & 11 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"
@@ -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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpstan/phpstan-php-parser": "^0.12.2",
2525
"phpstan/phpstan-phpunit": "^0.12.16",
2626
"phpstan/phpstan-strict-rules": "^0.12.5",
27-
"phpunit/phpunit": "^7.5.20"
27+
"phpunit/phpunit": "^9.5"
2828
},
2929
"config": {
3030
"platform": {

0 commit comments

Comments
(0)

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