Skip to content

Commit 48eb6a5

Browse files
committedNov 20, 2024··
Upload test results to CodeCov
1 parent 384bae4 commit 48eb6a5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎.github/workflows/tests.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
BS_ACCESS_KEY: ${{ secrets.BS_ACCESS_KEY }}
6868
if: "${{ matrix.with_coverage == true }}"
6969
run: |
70-
vendor/bin/phpunit -v --coverage-clover=coverage.clover
70+
vendor/bin/phpunit -v --coverage-clover=coverage.clover --log-junit junit.xml
7171
7272
- name: Run tests without Coverage
7373
env:
@@ -79,12 +79,18 @@ jobs:
7979
run: |
8080
vendor/bin/phpunit -v
8181
82-
- name: Upload Coverage to CodeCov
83-
if: "${{ matrix.with_coverage == true }}"
82+
- name: Upload coverage to Codecov
83+
if: ${{ matrix.with_coverage == true && !cancelled() }}
8484
uses: codecov/codecov-action@v4
8585
with:
8686
token: ${{ secrets.CODECOV_TOKEN }}
8787

88+
- name: Upload test results to Codecov
89+
if: ${{ matrix.with_coverage == true && !cancelled() }}
90+
uses: codecov/test-results-action@v1
91+
with:
92+
token: ${{ secrets.CODECOV_TOKEN }}
93+
8894
- name: Upload Coverage to Scrutinizer CI (PHP < 8.0)
8995
if: "${{ matrix.php < '8.0' && matrix.with_coverage == true }}"
9096
run: |

0 commit comments

Comments
 (0)
Please sign in to comment.