-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move test runner to nextest with coverage provided by llvm-cov
- Loading branch information
1 parent
1be5b9e
commit 48fdc2d
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- cki/github-workflow | ||
pull_request: | ||
branches: | ||
- main | ||
|
@@ -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 | ||
|
@@ -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] | ||
|