Skip to content

Commit d43f1a7

Browse files
committed
Sends test results to CodeCov
1 parent 4dca630 commit d43f1a7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,19 @@ jobs:
6161
LINES: 30
6262
run: |
6363
mkdir -p build/logs
64-
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --coverage-clover=coverage.clover
64+
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --log-junit junit.xml --coverage-clover=coverage.clover
6565
6666
- name: Upload coverage to Codecov
67-
uses: codecov/codecov-action@v3
67+
uses: codecov/codecov-action@v5
68+
if: ${{ !cancelled() }}
69+
with:
70+
token: ${{ secrets.CODECOV_TOKEN }}
71+
72+
- name: Upload test results to Codecov
73+
uses: codecov/test-results-action@v1
74+
if: ${{ !cancelled() }}
75+
with:
76+
token: ${{ secrets.CODECOV_TOKEN }}
6877

6978
- name: Upload Coverage to Scrutinizer CI (PHP < 8.0)
7079
if: "${{ matrix.php < '8.0' }}"

0 commit comments

Comments
 (0)