Skip to content

Commit 53f0e11

Browse files
committed
Updated CodeCov-related actions
Generate JUnit file for CodeCov to process
1 parent f862f5b commit 53f0e11

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/main.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,19 @@ jobs:
5858
- name: Run Tests
5959
run: |
6060
mkdir -p build/logs
61-
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --coverage-clover build/logs/clover.xml
61+
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --log-junit junit.xml --coverage-clover build/logs/clover.xml
6262
6363
- name: Upload coverage to Codecov
64-
uses: codecov/codecov-action@v3
64+
uses: codecov/codecov-action@v5
65+
if: ${{ !cancelled() }}
66+
with:
67+
token: ${{ secrets.CODECOV_TOKEN }}
68+
69+
- name: Upload test results to Codecov
70+
uses: codecov/test-results-action@v1
71+
if: ${{ !cancelled() }}
72+
with:
73+
token: ${{ secrets.CODECOV_TOKEN }}
6574

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

0 commit comments

Comments
 (0)