#!/bin/sh # Run every repository gate, the same set CI runs. Use this before pushing. # # ./scripts/ci-checks.sh # # Gates: rustfmt, clippy (warnings = errors), workspace tests, markdown format. set -eu ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)" cd "$ROOT_DIR" echo "==> cargo fmt --check" cargo fmt --check echo "==> cargo clippy --workspace --all-targets -- -D warnings" cargo clippy --workspace --all-targets -- -D warnings echo "==> cargo test --workspace" cargo test --workspace echo "==> markdown format gate" ./scripts/check-format.sh echo "All checks passed."