Skip to content

Commit d73a9a4

Browse files
authored
add coverage report (#24)
1 parent 2dc25a5 commit d73a9a4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,27 @@ jobs:
8686
uses: Swatinem/rust-cache@v2
8787
- name: Run cargo test --features fips
8888
run: cargo test --tests --features fips -- --test-threads=1
89+
90+
coverage:
91+
name: Coverage
92+
runs-on: ubuntu-latest
93+
steps:
94+
- name: Check out repository
95+
uses: actions/checkout@v4
96+
- name: Install toolchain
97+
uses: dtolnay/rust-toolchain@v1
98+
with:
99+
toolchain: stable
100+
components: llvm-tools
101+
- name: Cache build artifacts
102+
uses: Swatinem/rust-cache@v2
103+
- name: Install cargo-llvm-cov
104+
uses: taiki-e/install-action@cargo-llvm-cov
105+
- name: Generate coverage
106+
run: cargo llvm-cov --lcov --output-path lcov.info
107+
- name: Report to codecov.io
108+
uses: codecov/codecov-action@v5
109+
with:
110+
files: lcov.info
111+
token: ${{ secrets.CODECOV_TOKEN }}
112+
fail_ci_if_error: false

0 commit comments

Comments
 (0)