Skip to content

Commit

Permalink
send junit test results to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-codecov committed Feb 28, 2024
1 parent 9ca25cd commit 1ec5ec6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ jobs:
uses: codecov/codecov-action@v4-beta
with:
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Generate JUnit test results
# Run tests again but with JSON output. Convert to junit then upload.
# The original format is nicer to look at in CI error messages.
run: |
cargo install cargo2junit
cargo test -- -Z unstable-options --format json --report-time | cargo2junit > results.xml
- name: Upload test results
uses: codecov/test-results-action@v0
with:
file: ./results.xml
token: ${{ secrets.CODECOV_ORG_TOKEN }}
verbose: true

0 comments on commit 1ec5ec6

Please sign in to comment.