File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,13 @@ jobs:
204
204
- GraphQl
205
205
- Serializer
206
206
- Symfony
207
+ include :
208
+ - php : ' 8.1'
209
+ coverage : true
210
+ - php : ' 8.2'
211
+ coverage : true
212
+ - php : ' 8.3'
213
+ coverage : true
207
214
fail-fast : false
208
215
steps :
209
216
- name : Checkout
@@ -219,7 +226,32 @@ jobs:
219
226
working-directory : src/${{ matrix.component }}
220
227
run : |
221
228
composer update
222
- vendor/bin/simple-phpunit
229
+ vendor/bin/simple-phpunit --log-junit "build/logs/phpunit/${{ matrix.component }}.junit.xml" ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/${{ matrix.component }}.clover.xml' || '' }}
230
+ - name : Upload test artifacts
231
+ if : always()
232
+ uses : actions/upload-artifact@v3
233
+ with :
234
+ name : " phpunit-logs-php${{ matrix.php }}-${{ matrix.component }}"
235
+ path : build/logs/phpunit
236
+ continue-on-error : true
237
+ - name : Upload coverage results to Codecov
238
+ if : matrix.coverage
239
+ uses : codecov/codecov-action@v3
240
+ with :
241
+ directory : build/logs/phpunit
242
+ name : " phpunit-php${{ matrix.php }}-${{ matrix.component }}"
243
+ flags : phpunit
244
+ fail_ci_if_error : true
245
+ continue-on-error : true
246
+ - name : Upload coverage results to Coveralls
247
+ if : matrix.coverage
248
+ env :
249
+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
250
+ run : |
251
+ composer global require --prefer-dist --no-interaction --no-progress --ansi php-coveralls/php-coveralls
252
+ export PATH="$PATH:$HOME/.composer/vendor/bin"
253
+ php-coveralls --coverage_clover=build/logs/phpunit/${{ matrix.component }}.clover.xml
254
+ continue-on-error : true
223
255
224
256
behat :
225
257
name : Behat (PHP ${{ matrix.php }})
You can’t perform that action at this time.
0 commit comments