Skip to content

Commit e0a97a7

Browse files
ci(codecov): add test analytics
1 parent 003c77b commit e0a97a7

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,25 @@ jobs:
7373
id: test
7474
uses: ./ci/github-actions/arch-run
7575
with:
76-
command: cargo install cargo-tarpaulin; cargo tarpaulin --engine llvm --out Xml
76+
command: |
77+
cargo install cargo-junit cargo-tarpaulin
78+
cargo tarpaulin --engine llvm --out Xml
79+
cargo junit --name junit.xml
80+
81+
- name: Upload test results to Codecov
82+
# any except canceled or skipped
83+
if: >-
84+
always() &&
85+
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
86+
startsWith(github.repository, 'LizardByte/')
87+
uses: codecov/test-results-action@v1
88+
with:
89+
disable_search: true
90+
fail_ci_if_error: true
91+
files: junit.xml
92+
handle_no_reports_found: true
93+
token: ${{ secrets.CODECOV_TOKEN }}
94+
verbose: true
7795

7896
- name: Upload coverage
7997
# any except canceled or skipped

0 commit comments

Comments
 (0)