Skip to content

Commit

Permalink
Merge pull request #3 from codecov/matt/send-test-results-to-codecov
Browse files Browse the repository at this point in the history
send junit test results to codecov
  • Loading branch information
matt-codecov authored Feb 28, 2024
2 parents 9ca25cd + 1f6905f commit 3b79dd2
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@v1
with:
file: ./results.xml
token: ${{ secrets.CODECOV_ORG_TOKEN }}
verbose: true

0 comments on commit 3b79dd2

Please sign in to comment.