mirror of
https://github.com/kristoferssolo/maze-ascension.git
synced 2025-10-21 19:20:34 +00:00
ci: update CI
This commit is contained in:
parent
399db7605c
commit
07f0cafcf8
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
@ -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
|
||||
|
||||
3
justfile
3
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user