Skip to content

Commit c085ffb

Browse files
authored
Upload test results to CodeCov (#403)
Upload test results to CodeCov
1 parent e778774 commit c085ffb

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
WEB_FIXTURES_BROWSER: firefox
9696
DRIVER_MACHINE_BASE_PATH: /fixtures/
9797
run: |
98-
vendor/bin/phpunit -v --coverage-clover=coverage.xml
98+
vendor/bin/phpunit -v --coverage-clover=coverage.xml --log-junit junit.xml
9999
100100
- name: Run tests without Coverage
101101
if: "${{ matrix.with_coverage == false }}"
@@ -107,13 +107,19 @@ jobs:
107107
run: |
108108
vendor/bin/phpunit -v
109109
110-
- name: Upload coverage
111-
if: "${{ matrix.with_coverage == true }}"
110+
- name: Upload coverage to Codecov
111+
if: ${{ matrix.with_coverage == true && !cancelled() }}
112112
uses: codecov/codecov-action@v4
113113
with:
114114
token: ${{ secrets.CODECOV_TOKEN }}
115115
files: coverage.xml
116116

117+
- name: Upload test results to Codecov
118+
if: ${{ matrix.with_coverage == true && !cancelled() }}
119+
uses: codecov/test-results-action@v1
120+
with:
121+
token: ${{ secrets.CODECOV_TOKEN }}
122+
117123
- name: Archive logs artifacts
118124
if: ${{ failure() }}
119125
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)