Skip to content

Commit 23bae68

Browse files
committed
CI: Install and run tarpaulin only on stable
1 parent 3daadd9 commit 23bae68

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,17 @@ jobs:
197197
cargo fmt -- --check
198198
cargo clippy --all-targets --all-features --all
199199
200-
- run: cargo install cargo-tarpaulin
201-
- run: cargo tarpaulin
200+
- name: Install cargo-tarpaulin
201+
if: matrix.rust == 'stable'
202+
run: which cargo-tarpaulin || cargo install cargo-tarpaulin
203+
204+
- name: Run tests (with coverage report)
205+
if: matrix.rust == 'stable'
206+
run: cargo tarpaulin
207+
208+
- name: Run tests
209+
if: matrix.rust != 'stable'
210+
run: cargo test
202211

203212
- name: Prune unnecessary cache
204213
run: script/ci/prune-cache.sh

0 commit comments

Comments
 (0)