Skip to content

Commit

Permalink
Use cargo-llvm-cov for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Jan 27, 2023
1 parent 656b72d commit 5737736
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,21 @@ jobs:

coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/tarpaulin@v0.1
- uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
- uses: actions/upload-artifact@v1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
name: code-coverage-report
path: cobertura.xml
files: lcov.info
fail_ci_if_error: true

0 comments on commit 5737736

Please sign in to comment.