Skip to content

Commit 6ef63e0

Browse files
committed
Split code coverage step into separate job
1 parent c94c31b commit 6ef63e0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ jobs:
5656
run: cargo build --verbose ${{ join(matrix.features, ' ') }}
5757
- name: Run doctests
5858
run: cargo test --doc --verbose ${{ join(matrix.features, ' ') }}
59+
- name: Run regular tests
60+
run: cargo test --tests --verbose ${{ join(matrix.features, ' ') }}
61+
62+
codecov:
63+
needs:
64+
- lint
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v4
5968
- uses: dtolnay/rust-toolchain@stable
6069
with:
6170
components: llvm-tools-preview
@@ -64,11 +73,12 @@ jobs:
6473
- name: Install nextest
6574
uses: taiki-e/install-action@nextest
6675
- name: Generate code coverage
67-
run: cargo llvm-cov nextest ${{ join(matrix.features, ' ') }} --lcov --output-path lcov.info
76+
run: cargo llvm-cov nextest --all-features --lcov --output-path lcov.info
6877

6978
build-others:
7079
needs:
7180
- build-linux
81+
- codecov
7282
- docs
7383
runs-on: ${{ matrix.os }}
7484
strategy:

0 commit comments

Comments
 (0)