Skip to content

Commit 084db8a

Browse files
Also upload test results to codecov.io
1 parent eedaa99 commit 084db8a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,19 @@ jobs:
161161
run: php ./tools/composer update --no-ansi --no-interaction --no-progress
162162

163163
- name: Run tests with PHPUnit
164-
run: vendor/bin/phpunit --coverage-clover=coverage.xml
164+
run: vendor/bin/phpunit --log-junit test-results.xml --coverage-clover=code-coverage.xml
165165

166-
- name: Send code coverage report to Codecov.io
166+
- name: Upload test results to Codecov.io
167+
if: ${{ !cancelled() }}
168+
uses: codecov/test-results-action@v1
169+
with:
170+
token: ${{ secrets.CODECOV_TOKEN }}
171+
disable_search: true
172+
files: ./test-results.xml
173+
174+
- name: Upload code coverage data to Codecov.io
167175
uses: codecov/codecov-action@v4
168176
with:
169177
token: ${{ secrets.CODECOV_TOKEN }}
178+
disable_search: true
179+
files: ./code-coverage.xml

0 commit comments

Comments
 (0)