Skip to content

Commit 8dc6a62

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

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,29 @@ 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+
# debug junit.xml
82+
echo "junit.xml:"
83+
cat junit.xml
84+
85+
- name: Upload test results to Codecov
86+
# any except canceled or skipped
87+
if: >-
88+
always() &&
89+
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
90+
startsWith(github.repository, 'LizardByte/')
91+
uses: codecov/test-results-action@v1
92+
with:
93+
disable_search: true
94+
fail_ci_if_error: true
95+
files: junit.xml
96+
handle_no_reports_found: true
97+
token: ${{ secrets.CODECOV_TOKEN }}
98+
verbose: true
7799

78100
- name: Upload coverage
79101
# any except canceled or skipped

0 commit comments

Comments
 (0)