Skip to content

Commit 48fdc2d

Browse files
committed
move test runner to nextest with coverage provided by llvm-cov
1 parent 1be5b9e commit 48fdc2d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- cki/github-workflow
78
pull_request:
89
branches:
910
- main
@@ -31,6 +32,9 @@ jobs:
3132
- name: Install rustfmt for nightly
3233
run: rustup component add --toolchain nightly rustfmt
3334

35+
- name: Install llvm-tools-preview for stable
36+
run: rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu
37+
3438
- name: Install dependencies
3539
run: |
3640
sudo apt-get update
@@ -48,11 +52,14 @@ jobs:
4852
- name: Run cargo clippy
4953
run: cargo +nightly clippy -- -D warnings
5054

51-
- name: Install cargo-tarpaulin
52-
run: cargo install cargo-tarpaulin
55+
- name: Install llvm-cov
56+
uses: taiki-e/install-action@cargo-llvm-cov
57+
58+
- name: Install nextest
59+
uses: taiki-e/install-action@nextest
5360

54-
- name: Run cargo tarpaulin
55-
run: cargo +nightly tarpaulin --rustflags="-C opt-level=0" --no-fail-fast --out xml
61+
- name: Run Tests
62+
run: cargo llvm-cov --cobertura --output-path cobertura.xml nextest
5663

5764
- name: Generate Code Coverage Summary
5865
uses: irongut/CodeCoverageSummary@v1.3.0

0 commit comments

Comments
 (0)