Use cargo-llvm-cov instead of tarpaulin for code coverage

It tends to give more accurate results and run into fewer issues.
This commit is contained in:
Oliver Hamlet
2022-11-09 00:04:41 +00:00
parent ed030b6dde
commit 0b802e9eb3
+3 -3
View File
@@ -89,8 +89,8 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Tarpaulin
run: curl -sL https://github.com/xd009642/tarpaulin/releases/download/0.18.0/cargo-tarpaulin-0.18.0-travis.tar.gz | tar xvz -C $HOME/.cargo/bin
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Prepare test resources
run: |
@@ -115,7 +115,7 @@ jobs:
cd ..
- name: Build and run tests with code coverage
run: cargo tarpaulin --workspace --out Lcov --avoid-cfg-tarpaulin
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
- name: Upload code coverage to Coveralls
uses: coverallsapp/github-action@v1.1.1