Skip to content

Commit

Permalink
move test runner to nextest with coverage provided by llvm-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanirby committed Mar 10, 2025
1 parent 1be5b9e commit 48fdc2d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- cki/github-workflow
pull_request:
branches:
- main
Expand Down Expand Up @@ -31,6 +32,9 @@ jobs:
- name: Install rustfmt for nightly
run: rustup component add --toolchain nightly rustfmt

- name: Install llvm-tools-preview for stable
run: rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu

- name: Install dependencies
run: |
sudo apt-get update
Expand All @@ -48,11 +52,14 @@ jobs:
- name: Run cargo clippy
run: cargo +nightly clippy -- -D warnings

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin
- name: Install llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Install nextest
uses: taiki-e/install-action@nextest

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

- name: Generate Code Coverage Summary
uses: irongut/[email protected]
Expand Down

0 comments on commit 48fdc2d

Please sign in to comment.