Skip to content

Commit 3d57786

Browse files
Backport usage of codecov/test-results-action and explicitly configure which XML logfiles to use
1 parent 4e0b6f5 commit 3d57786

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,20 @@ jobs:
222222
run: ./tools/composer install --no-ansi --no-interaction --no-progress
223223

224224
- name: Collect code coverage with PHPUnit
225-
run: ./phpunit --coverage-clover=coverage.xml
225+
run: ./phpunit --log-junit test-results.xml --coverage-clover=code-coverage.xml
226226

227-
- name: Send code coverage report to Codecov.io
227+
- name: Upload test results to Codecov.io
228+
if: ${{ !cancelled() }}
229+
uses: codecov/test-results-action@v1
230+
with:
231+
token: ${{ secrets.CODECOV_TOKEN }}
232+
files: ./test-results.xml
233+
234+
- name: Upload code coverage data to Codecov.io
228235
uses: codecov/codecov-action@v4
229236
with:
230237
token: ${{ secrets.CODECOV_TOKEN }}
238+
files: ./code-coverage.xml
231239

232240
build-phar:
233241
name: Build PHAR

0 commit comments

Comments
 (0)