Skip to content

Commit

Permalink
ci: use nextest as the test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ferdinand committed Mar 7, 2024
1 parent c2974e1 commit 651934e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
with:
components: rustfmt, clippy

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

- name: Build constraints
run: cargo run --bin constraint-evaluation-generator

Expand All @@ -40,11 +43,14 @@ jobs:
run: cargo clippy --all-targets -- -D warnings

- name: Run tests
# `--benches` is purposefully omitted here
run: cargo test --lib --bins --tests --examples
run: cargo nextest run --no-fail-fast --tests

- name: Run examples
run: cargo nextest run --no-fail-fast --examples

# doctests are special [^1] but this step does not incur a performance penalty [^2]
#
# [^1]: https://nexte.st/book/usage.html#limitations
# [^2]: https://github.com/nextest-rs/nextest/issues/16
- name: Run documentation tests
run: cargo test --doc

- name: Build benchmarks
run: cargo bench --all-targets --no-run

0 comments on commit 651934e

Please sign in to comment.