Skip to content

Commit 76d9033

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

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,17 @@ 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+
with:
66+
token: ${{ secrets.CODECOV_TOKEN }}
67+
68+
- name: Upload test results to Codecov
69+
uses: codecov/test-results-action@v1
70+
with:
71+
token: ${{ secrets.CODECOV_TOKEN }}
6572

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

0 commit comments

Comments
 (0)