@@ -36,12 +36,12 @@ jobs:
36
36
- name : " Validate Composer"
37
37
run : " composer validate"
38
38
39
- - name : " Install dependencies"
40
- run : " composer install --no-interaction --no-progress --no-suggest"
41
-
42
39
- name : " Downgrade PHPUnit"
43
40
if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
44
- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
41
+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
42
+
43
+ - name : " Install dependencies"
44
+ run : " composer install --no-interaction --no-progress --no-suggest"
45
45
46
46
- name : " Lint"
47
47
run : " make lint"
@@ -100,6 +100,10 @@ jobs:
100
100
coverage : " none"
101
101
php-version : " ${{ matrix.php-version }}"
102
102
103
+ - name : " Downgrade PHPUnit"
104
+ if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
105
+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
106
+
103
107
- name : " Install lowest dependencies"
104
108
if : ${{ matrix.dependencies == 'lowest' }}
105
109
run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
@@ -108,10 +112,6 @@ jobs:
108
112
if : ${{ matrix.dependencies == 'highest' }}
109
113
run : " composer update --no-interaction --no-progress --no-suggest"
110
114
111
- - name : " Downgrade PHPUnit"
112
- if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
113
- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
114
-
115
115
- name : " Tests"
116
116
run : " make tests"
117
117
@@ -144,6 +144,10 @@ jobs:
144
144
extensions : mbstring
145
145
tools : composer:v2
146
146
147
+ - name : " Downgrade PHPUnit"
148
+ if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
149
+ run : " composer require --dev phpunit/phpunit:^7.5.20 --no-update --update-with-dependencies"
150
+
147
151
- name : " Install lowest dependencies"
148
152
if : ${{ matrix.dependencies == 'lowest' }}
149
153
run : " composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
@@ -152,9 +156,5 @@ jobs:
152
156
if : ${{ matrix.dependencies == 'highest' }}
153
157
run : " composer update --no-interaction --no-progress --no-suggest"
154
158
155
- - name : " Downgrade PHPUnit"
156
- if : matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
157
- run : " composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
158
-
159
159
- name : " PHPStan"
160
160
run : " make phpstan"
0 commit comments