Skip to content

Commit 3a6d551

Browse files
committed
Downgrade PHPUnit on 7.4 and 8.0
1 parent 9c85f53 commit 3a6d551

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ jobs:
4242
- name: "Install dependencies"
4343
run: "composer install --no-interaction --no-progress"
4444

45+
- name: "Downgrade PHPUnit"
46+
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
47+
run: "composer require --dev phpunit/phpunit:^9.6 --update-with-dependencies"
48+
4549
- name: "Transform source code"
46-
if: matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3' && matrix.php-version != '8.4'
50+
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
4751
run: |
4852
composer install --no-interaction --no-progress --working-dir=compiler
4953
./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}

.github/workflows/reflection-golden-test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
run: "composer install --no-interaction --no-progress"
101101

102102
- name: "Transform source code"
103-
if: matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3' && matrix.php-version != '8.4'
103+
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
104104
run: |
105105
composer install --no-interaction --no-progress --working-dir=compiler
106106
./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}
@@ -121,8 +121,12 @@ jobs:
121121
- name: "Install dependencies"
122122
run: "composer install --no-interaction --no-progress"
123123

124+
- name: "Downgrade PHPUnit"
125+
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
126+
run: "composer require --dev phpunit/phpunit:^9.6 --update-with-dependencies"
127+
124128
- name: "Transform source code"
125-
if: matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3' && matrix.php-version != '8.4'
129+
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
126130
run: |
127131
composer install --no-interaction --no-progress --working-dir=compiler
128132
./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}

.github/workflows/static-analysis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@ jobs:
5151
- name: "Install dependencies"
5252
run: "composer install --no-interaction --no-progress"
5353

54+
- name: "Downgrade PHPUnit"
55+
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
56+
run: "composer require --dev phpunit/phpunit:^9.6 --update-with-dependencies"
57+
5458
- name: "Transform source code"
55-
if: matrix.php-version != '8.1' && matrix.php-version != '8.2' && matrix.php-version != '8.3' && matrix.php-version != '8.4'
59+
if: matrix.php-version == '7.4' || matrix.php-version == '8.0'
5660
shell: bash
5761
run: |
5862
composer install --no-interaction --no-progress --working-dir=compiler
5963
./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}
6064
composer dump
6165
62-
6366
- name: "PHPStan"
6467
run: "make phpstan"
6568

0 commit comments

Comments
 (0)