Skip to content

Commit

Permalink
Try cargo-llvm-cov instead of cargo-tarpaulin
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Dec 29, 2022
1 parent 0d183b1 commit cb07c23
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ on:
jobs:
coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:latest
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v3
- run: cargo tarpaulin -f -t 5 --out Xml -v -- --test-threads=1
- uses: codecov/codecov-action@v3
- 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:
files: lcov.info

0 comments on commit cb07c23

Please sign in to comment.