@@ -202,6 +202,14 @@ jobs:
202
202
- RamseyUuid
203
203
- GraphQl
204
204
- Serializer
205
+ - Symfony
206
+ include :
207
+ - php : ' 8.1'
208
+ coverage : true
209
+ - php : ' 8.2'
210
+ coverage : true
211
+ - php : ' 8.3'
212
+ coverage : true
205
213
fail-fast : false
206
214
steps :
207
215
- name : Checkout
@@ -216,8 +224,35 @@ jobs:
216
224
- name : Run ${{ matrix.component }} tests
217
225
working-directory : src/${{ matrix.component }}
218
226
run : |
219
- composer update
220
- vendor/bin/simple-phpunit
227
+ composer update
228
+ mkdir -p build/logs/phpunit
229
+ vendor/bin/phpunit --log-junit "build/logs/phpunit/junit.xml" ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/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 }}
235
+ path : src/${{ matrix.component }}/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 : src/${{ matrix.component }}/build/logs/phpunit
242
+ name : phpunit-php${{ matrix.php }}
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
+ working-directory : src/${{ matrix.component }}
251
+ run : |
252
+ composer global require --prefer-dist --no-interaction --no-progress --ansi php-coveralls/php-coveralls
253
+ export PATH="$PATH:$HOME/.composer/vendor/bin"
254
+ php-coveralls --coverage_clover=build/logs/phpunit/clover.xml
255
+ continue-on-error : true
221
256
222
257
behat :
223
258
name : Behat (PHP ${{ matrix.php }})
0 commit comments