Skip to content

Commit 5737736

Browse files
committedJan 27, 2023
Use cargo-llvm-cov for coverage
1 parent 656b72d commit 5737736

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed
 

Diff for: ‎.github/workflows/main.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,21 @@ jobs:
8484

8585
coverage:
8686
runs-on: ubuntu-latest
87+
env:
88+
CARGO_TERM_COLOR: always
8789
steps:
88-
- uses: actions/checkout@v2
90+
- uses: actions/checkout@v3
8991
- uses: actions-rs/toolchain@v1
9092
with:
9193
profile: minimal
9294
toolchain: stable
9395
override: true
94-
- uses: actions-rs/tarpaulin@v0.1
95-
- uses: codecov/codecov-action@v1.0.2
96-
with:
97-
token: ${{secrets.CODECOV_TOKEN}}
98-
- uses: actions/upload-artifact@v1
96+
- name: Install cargo-llvm-cov
97+
uses: taiki-e/install-action@cargo-llvm-cov
98+
- name: Generate code coverage
99+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
100+
- name: Upload coverage to Codecov
101+
uses: codecov/codecov-action@v3
99102
with:
100-
name: code-coverage-report
101-
path: cobertura.xml
103+
files: lcov.info
104+
fail_ci_if_error: true

0 commit comments

Comments
 (0)
Please sign in to comment.