@@ -37,12 +37,12 @@ jobs:
37
37
- name : " Validate Composer"
38
38
run : " composer validate"
39
39
40
- - name : " Install dependencies"
41
- run : " composer install --no-interaction --no-progress"
42
-
43
40
- name : " Downgrade PHPUnit"
44
41
if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
45
- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
42
+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
43
+
44
+ - name : " Install dependencies"
45
+ run : " composer install --no-interaction --no-progress"
46
46
47
47
- name : " Lint"
48
48
run : " make lint"
@@ -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.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
106
+ run : " composer require --dev phpunit/phpunit:^7.5.20 --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.1' || 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
@@ -145,6 +145,10 @@ jobs:
145
145
extensions : mbstring
146
146
tools : composer:v2
147
147
148
+ - name : " Downgrade PHPUnit"
149
+ if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
150
+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
151
+
148
152
- name : " Install lowest dependencies"
149
153
if : ${{ matrix.dependencies == 'lowest' }}
150
154
run : " composer update --prefer-lowest --no-interaction --no-progress"
@@ -153,9 +157,5 @@ jobs:
153
157
if : ${{ matrix.dependencies == 'highest' }}
154
158
run : " composer update --no-interaction --no-progress"
155
159
156
- - name : " Downgrade PHPUnit"
157
- if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
158
- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
159
-
160
160
- name : " PHPStan"
161
161
run : " make phpstan"
0 commit comments