Skip to content

Commit 74a5fd2

Browse files
committed
ci: re-add coverage job
1 parent e092fd4 commit 74a5fd2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

+19
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,22 @@ jobs:
8282
with:
8383
command: clippy
8484
args: -- -D warnings
85+
86+
coverage:
87+
runs-on: ubuntu-latest
88+
env:
89+
CARGO_TERM_COLOR: always
90+
steps:
91+
- uses: actions/checkout@v4
92+
- name: Install Rust
93+
run: rustup update stable
94+
- name: Install cargo-llvm-cov
95+
uses: taiki-e/install-action@cargo-llvm-cov
96+
- name: Generate code coverage
97+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
98+
- name: Upload coverage to Codecov
99+
uses: codecov/codecov-action@v3
100+
with:
101+
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
102+
files: lcov.info
103+
fail_ci_if_error: true

0 commit comments

Comments
 (0)