Skip to content

Commit 46297c2

Browse files
ci(codecov): add test analytics (#398)
1 parent 07254da commit 46297c2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,23 @@ jobs:
7070
--verbose \
7171
--color=yes \
7272
--cov=src \
73+
--junitxml=junit.xml \
74+
-o junit_family=legacy \
7375
tests
7476
77+
- name: Upload test results to Codecov
78+
# any except canceled or skipped
79+
if: >-
80+
always() &&
81+
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
82+
startsWith(github.repository, 'LizardByte/')
83+
uses: codecov/test-results-action@v1
84+
with:
85+
fail_ci_if_error: true
86+
files: junit.xml
87+
token: ${{ secrets.CODECOV_TOKEN }}
88+
verbose: true
89+
7590
- name: Upload coverage
7691
# any except canceled or skipped
7792
if: >-
@@ -82,6 +97,7 @@ jobs:
8297
with:
8398
fail_ci_if_error: true
8499
token: ${{ secrets.CODECOV_TOKEN }}
100+
verbose: true
85101

86102
- name: Create/Update GitHub Release
87103
if: >-

0 commit comments

Comments
 (0)