Files
lumbridge-code/scripts/ci.sh
T
2026-08-31 15:05:20 -07:00

16 lines
483 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
if command -v cargo-nextest >/dev/null 2>&1; then
cargo nextest run --workspace --all-features --profile "${NEXTEST_PROFILE:-default}"
else
echo "cargo-nextest not installed; using cargo test" >&2
cargo test --workspace --all-features
fi
# nextest deliberately does not run doctests on stable Rust.
cargo test --workspace --all-features --doc