Skip to content

Commit 82503a9

Browse files
committed
Migrate coverage to llvm-cov
Tarpaulin seems no longer work, I see > Couldn't find a release tarball containing binaries for latest for the last many coverate runs.
1 parent 07c5e05 commit 82503a9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/coverage.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ jobs:
2222
- name: Checkout repository
2323
uses: actions/checkout@v4
2424

25-
- name: Run cargo-tarpaulin
26-
uses: actions-rs/tarpaulin@v0.1
27-
with:
28-
args: '--${{ matrix.features }}'
25+
- name: Install cargo-llvm-cov
26+
uses: taiki-e/install-action@cargo-llvm-cov
27+
28+
- name: Run tests with Coverage report enabled
29+
run: cargo llvm-cov test --${{ matrix.features }} --workspace --codecov --locked --output-path codecov_report.json
2930

30-
- name: Upload to codecov.io
31-
uses: codecov/codecov-action@v4
31+
- name: Upload coverage report to Codecov
32+
uses: codecov/codecov-action@v5
33+
with:
34+
files: ./codecov_report.json

0 commit comments

Comments
 (0)