Skip to content

Commit

Permalink
Updated CodeCov-related actions
Browse files Browse the repository at this point in the history
Generate JUnit file for CodeCov to process
  • Loading branch information
aik099 committed Dec 13, 2024
1 parent f862f5b commit 53f0e11
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,19 @@ jobs:
- name: Run Tests
run: |
mkdir -p build/logs
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --coverage-clover build/logs/clover.xml
vendor/bin/phpunit --configuration ${{ matrix.phpunit_config }} --log-junit junit.xml --coverage-clover build/logs/clover.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
if: ${{ !cancelled() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
if: ${{ !cancelled() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}

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

0 comments on commit 53f0e11

Please sign in to comment.