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 82d54e8

Browse files
Fix build by downgrading PHPUnit
1 parent 120d3a8 commit 82d54e8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎.github/workflows/build.yml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
coverage: "none"
3434
php-version: "${{ matrix.php-version }}"
3535

36+
- name: "Downgrade PHPUnit"
37+
if: matrix.php-version == '7.2'
38+
run: "composer require --dev phpunit/phpunit:^8.5.29 --no-update --update-with-dependencies"
39+
3640
- name: "Validate Composer"
3741
run: "composer validate"
3842

3943
- name: "Install dependencies"
4044
run: "composer install --no-interaction --no-progress"
4145

42-
- name: "Downgrade PHPUnit"
43-
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
44-
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
45-
4646
- name: "Lint"
4747
run: "make lint"
4848

@@ -101,6 +101,10 @@ jobs:
101101
coverage: "none"
102102
php-version: "${{ matrix.php-version }}"
103103

104+
- name: "Downgrade PHPUnit"
105+
if: matrix.php-version == '7.2'
106+
run: "composer require --dev phpunit/phpunit:^8.5.29 --no-update --update-with-dependencies"
107+
104108
- name: "Install lowest dependencies"
105109
if: ${{ matrix.dependencies == 'lowest' }}
106110
run: "composer update --prefer-lowest --no-interaction --no-progress"
@@ -109,10 +113,6 @@ jobs:
109113
if: ${{ matrix.dependencies == 'highest' }}
110114
run: "composer update --no-interaction --no-progress"
111115

112-
- name: "Downgrade PHPUnit"
113-
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
114-
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
115-
116116
- name: "Tests"
117117
run: "make tests"
118118

@@ -146,6 +146,10 @@ jobs:
146146
extensions: mbstring
147147
tools: composer:v2
148148

149+
- name: "Downgrade PHPUnit"
150+
if: matrix.php-version == '7.2'
151+
run: "composer require --dev phpunit/phpunit:^8.5.29 --no-update --update-with-dependencies"
152+
149153
- name: "Install lowest dependencies"
150154
if: ${{ matrix.dependencies == 'lowest' }}
151155
run: "composer update --prefer-lowest --no-interaction --no-progress"
@@ -154,9 +158,5 @@ jobs:
154158
if: ${{ matrix.dependencies == 'highest' }}
155159
run: "composer update --no-interaction --no-progress"
156160

157-
- name: "Downgrade PHPUnit"
158-
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
159-
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
160-
161161
- name: "PHPStan"
162162
run: "make phpstan"

0 commit comments

Comments
(0)

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