Skip to content

Commit 04799d2

Browse files
committed
CI: Install and run tarpaulin only on stable
1 parent 24e377a commit 04799d2

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
@@ -195,8 +195,17 @@ jobs:
195195
cargo fmt -- --check
196196
cargo clippy --all-targets --all-features --all
197197
198-
- run: cargo install cargo-tarpaulin
199-
- run: cargo tarpaulin
198+
- name: Install cargo-tarpaulin
199+
if: matrix.rust == 'stable'
200+
run: which cargo-tarpaulin || cargo install cargo-tarpaulin
201+
202+
- name: Run tests (with coverage report)
203+
if: matrix.rust == 'stable'
204+
run: cargo tarpaulin
205+
206+
- name: Run tests
207+
if: matrix.rust != 'stable'
208+
run: cargo test
200209

201210
- name: Prune unnecessary cache
202211
run: script/ci/prune-cache.sh

0 commit comments

Comments
 (0)