diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 86db61e..5851f19 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,13 +21,17 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Install dependencies run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev + - name: Install cargo-nextest + run: cargo install cargo-nextest - name: Populate target directory from cache uses: Leafwing-Studios/cargo-cache@v2 with: sweep-cache: true - name: Run tests run: | - cargo test --locked --workspace --no-default-features + cargo nextest run --locked --workspace --no-default-features --all-targets + # Run doctests separately since nextest doesn't support them + cargo test --doc --locked --workspace --no-default-features # Run clippy lints. clippy: name: Clippy diff --git a/justfile b/justfile index d6e631b..eb95310 100644 --- a/justfile +++ b/justfile @@ -20,6 +20,7 @@ web-release: # Run tests test: + RUSTC_WRAPPER=sccache RUST_BACKTRACE=full cargo test --doc --locked --workspace --no-default-features RUSTC_WRAPPER=sccache RUST_BACKTRACE=full cargo nextest run --no-default-features --all-targets # Run CI localy @@ -29,4 +30,4 @@ ci: cargo fmt --all -- --check cargo clippy --workspace --all-targets --all-features -- --deny warnings cargo doc --workspace --all-features --document-private-items --no-deps - cargo test --workspace --no-default-features + just test