ci: update CI

This commit is contained in:
Kristofers Solo 2025-01-05 20:51:59 +02:00
parent 399db7605c
commit 07f0cafcf8
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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