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
eldruin committed Jul 16, 2024
1 parent 05a8f32 commit a4c34eb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,18 @@ jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:latest
options: --security-opt seccomp=unconfined
steps:

- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Run cargo-tarpaulin
run: cargo tarpaulin --out Lcov -- --test-threads 1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
run: cargo llvm-cov --workspace --lcov --output-path lcov.info

- name: upload to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'
path-to-lcov: './lcov.info'

0 comments on commit a4c34eb

Please sign in to comment.