Skip to content

Commit 569003f

Browse files
authored
Upload tests results fo Codecov (#1079)
1 parent 130ac29 commit 569003f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- os: ubuntu-latest
5454
description: 'with calculating code coverage and Infection'
5555
calculate-coverage: true
56-
phpunit-flags: '--coverage-clover=./coverage-clover.xml'
56+
phpunit-flags: '--log-junit=./junit.xml --coverage-clover=./coverage-clover.xml'
5757
php-version: '8.4'
5858
FAST_LINT_TEST_CASES: 1
5959
- os: ubuntu-latest
@@ -132,6 +132,14 @@ jobs:
132132
env:
133133
FAST_LINT_TEST_CASES: ${{ matrix.FAST_LINT_TEST_CASES }}
134134

135+
- if: matrix.calculate-coverage
136+
uses: codecov/test-results-action@v1
137+
with:
138+
disable_search: true
139+
files: ./junit.xml
140+
token: ${{ secrets.CODECOV_TOKEN }}
141+
verbose: true
142+
135143
- if: matrix.calculate-coverage
136144
uses: codecov/codecov-action@v5
137145
with:

0 commit comments

Comments
 (0)