@@ -265,32 +265,34 @@ jobs:
265
265
- name : Run ${{ matrix.component }} tests
266
266
working-directory : src/${{ matrix.component }}
267
267
run : |
268
- composer update
269
- vendor/bin/simple-phpunit --log-junit "build/logs/phpunit/junit.xml" ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/clover.xml' || '' }}
268
+ composer update
269
+ mkdir -p build/logs/phpunit
270
+ vendor/bin/phpunit --log-junit "build/logs/phpunit/junit.xml" ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/clover.xml' || '' }}
270
271
- name : Upload test artifacts
271
272
if : always()
272
273
uses : actions/upload-artifact@v3
273
274
with :
274
- name : " phpunit-logs-php${{ matrix.php }}-${{ matrix.component }} "
275
- path : build/logs/phpunit
275
+ name : phpunit-logs-php${{ matrix.php }}
276
+ path : src/${{ matrix.component }}/ build/logs/phpunit
276
277
continue-on-error : true
277
278
- name : Upload coverage results to Codecov
278
279
if : matrix.coverage
279
280
uses : codecov/codecov-action@v3
280
281
with :
281
- directory : build/logs/phpunit
282
- name : " phpunit-php${{ matrix.php }}-${{ matrix.component }} "
282
+ directory : src/${{ matrix.component }}/ build/logs/phpunit
283
+ name : phpunit-php${{ matrix.php }}
283
284
flags : phpunit
284
285
fail_ci_if_error : true
285
286
continue-on-error : true
286
287
- name : Upload coverage results to Coveralls
287
288
if : matrix.coverage
288
289
env :
289
290
COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
291
+ working-directory : src/${{ matrix.component }}
290
292
run : |
291
293
composer global require --prefer-dist --no-interaction --no-progress --ansi php-coveralls/php-coveralls
292
294
export PATH="$PATH:$HOME/.composer/vendor/bin"
293
- php-coveralls --coverage_clover " build/logs/phpunit/clover.xml"
295
+ php-coveralls --coverage_clover= build/logs/phpunit/clover.xml
294
296
continue-on-error : true
295
297
296
298
behat :
0 commit comments