Skip to content

Commit c293e6d

Browse files
committed
switch coverage to cargo llvm-cov
1 parent 1dd32fe commit c293e6d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ jobs:
55
test:
66
name: coverage
77
runs-on: ubuntu-latest
8-
container:
9-
image: xd009642/tarpaulin:latest
10-
options: --security-opt seccomp=unconfined
118
steps:
129
- name: Checkout repository
1310
uses: actions/checkout@v7
@@ -26,12 +23,15 @@ jobs:
2623
key: ${{ runner.os }}-stable-coverage-build-target-${{ hashFiles('**/Cargo.lock') }}
2724
restore-keys: ${{ runner.os }}-stable-coverage-build-target-
2825

26+
- name: Install cargo-llvm-cov
27+
uses: taiki-e/install-action@cargo-llvm-cov
28+
2929
- name: Generate code coverage
30-
run: |
31-
cargo tarpaulin --all-features --skip-clean --workspace --timeout 120 --out xml
30+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
3231

3332
- name: Upload to codecov.io
3433
uses: codecov/codecov-action@v7
3534
with:
35+
files: lcov.info
3636
fail_ci_if_error: true
3737
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)