Skip to content

Commit c94c31b

Browse files
committed
Add code coverage step
1 parent 5815a8d commit c94c31b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,17 @@ jobs:
5454
run: cargo clippy ${{ join(matrix.features, ' ') }}
5555
- name: Build
5656
run: cargo build --verbose ${{ join(matrix.features, ' ') }}
57-
- name: Run tests
58-
run: cargo test --tests --verbose ${{ join(matrix.features, ' ') }}
5957
- name: Run doctests
6058
run: cargo test --doc --verbose ${{ join(matrix.features, ' ') }}
59+
- uses: dtolnay/rust-toolchain@stable
60+
with:
61+
components: llvm-tools-preview
62+
- name: Install cargo-llvm-cov
63+
uses: taiki-e/install-action@cargo-llvm-cov
64+
- name: Install nextest
65+
uses: taiki-e/install-action@nextest
66+
- name: Generate code coverage
67+
run: cargo llvm-cov nextest ${{ join(matrix.features, ' ') }} --lcov --output-path lcov.info
6168

6269
build-others:
6370
needs:

0 commit comments

Comments
 (0)