@@ -33,16 +33,16 @@ jobs:
33
33
coverage : " none"
34
34
php-version : " ${{ matrix.php-version }}"
35
35
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
+
36
40
- name : " Validate Composer"
37
41
run : " composer validate"
38
42
39
43
- name : " Install dependencies"
40
44
run : " composer install --no-interaction --no-progress"
41
45
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
-
46
46
- name : " Lint"
47
47
run : " make lint"
48
48
@@ -101,6 +101,10 @@ jobs:
101
101
coverage : " none"
102
102
php-version : " ${{ matrix.php-version }}"
103
103
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
+
104
108
- name : " Install lowest dependencies"
105
109
if : ${{ matrix.dependencies == 'lowest' }}
106
110
run : " composer update --prefer-lowest --no-interaction --no-progress"
@@ -109,10 +113,6 @@ jobs:
109
113
if : ${{ matrix.dependencies == 'highest' }}
110
114
run : " composer update --no-interaction --no-progress"
111
115
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
-
116
116
- name : " Tests"
117
117
run : " make tests"
118
118
@@ -146,6 +146,10 @@ jobs:
146
146
extensions : mbstring
147
147
tools : composer:v2
148
148
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
+
149
153
- name : " Install lowest dependencies"
150
154
if : ${{ matrix.dependencies == 'lowest' }}
151
155
run : " composer update --prefer-lowest --no-interaction --no-progress"
@@ -154,9 +158,5 @@ jobs:
154
158
if : ${{ matrix.dependencies == 'highest' }}
155
159
run : " composer update --no-interaction --no-progress"
156
160
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
-
161
161
- name : " PHPStan"
162
162
run : " make phpstan"
0 commit comments