File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,51 @@ jobs:
168
168
- name : " Upload Code Coverage"
169
169
uses : " codecov/codecov-action@v1"
170
170
171
+ phpunit-prefer-lowest :
172
+ name : " PHPUnit with prefer-lowest"
173
+ runs-on : " ubuntu-latest"
174
+
175
+ strategy :
176
+ matrix :
177
+ php-version :
178
+ - " 7.4"
179
+
180
+ services :
181
+ mysql :
182
+ image : " mysql:8"
183
+ env :
184
+ MYSQL_ALLOW_EMPTY_PASSWORD : true
185
+ MYSQL_ROOT_PASSWORD :
186
+ ports :
187
+ - " 3306:3306"
188
+
189
+ steps :
190
+ - name : " Checkout"
191
+ uses : " actions/checkout@v2"
192
+
193
+ - name : " Install PHP"
194
+ uses : " shivammathur/setup-php@v2"
195
+ with :
196
+ php-version : " ${{ matrix.php-version }}"
197
+ extensions : " "
198
+ coverage : " pcov"
199
+
200
+ - name : " Cache dependencies installed with composer"
201
+ uses : " actions/cache@v1"
202
+ with :
203
+ path : " ~/.composer/cache"
204
+ key : " php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
205
+ restore-keys : " php-${{ matrix.php-version }}-composer-locked-"
206
+
207
+ - name : " Install dependencies with composer"
208
+ run : " composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
209
+
210
+ - name : " Run PHPUnit"
211
+ run : " vendor/bin/phpunit -c phpunit.mysql8.xml --coverage-clover=coverage.xml"
212
+
213
+ - name : " Upload Code Coverage"
214
+ uses : " codecov/codecov-action@v1"
215
+
171
216
phpunit-mariadb105 :
172
217
name : " PHPUnit on MariaDB 10.5"
173
218
runs-on : " ubuntu-latest"
You can’t perform that action at this time.
0 commit comments