Skip to content

Commit

Permalink
ci: use cargo-nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
seqre committed Jul 10, 2024
1 parent 3dc0337 commit aeda353
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,22 @@ jobs:
- name: Cache Cargo registry
uses: Swatinem/rust-cache@v2

- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: nextest

- name: Build
run: cargo +${{ matrix.rust }} build

- name: Test
run: cargo +${{ matrix.rust }} test
run: cargo +${{ matrix.rust }} nextest run

# Nextest does not support doc tests as in stable Rust
# they are not exposed in the same way as normal tests.
# https://github.com/nextest-rs/nextest/issues/16
- name: Test docs
run: cargo +${{ matrix.rust }} test --doc

clippy:
if: github.event_name == 'push' || github.event_name == 'schedule' ||
Expand Down

0 comments on commit aeda353

Please sign in to comment.