2026-06-04 20:47:00 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
# Run every repository gate, the same set CI runs. Use this before pushing.
|
|
|
|
|
#
|
|
|
|
|
# ./scripts/ci-checks.sh
|
|
|
|
|
#
|
2026-06-24 13:26:40 +02:00
|
|
|
# Gates: rustfmt, clippy (warnings = errors), workspace tests, markdown format,
|
|
|
|
|
# wiki-lint (dangling refs, resurrected old names, orphan pages).
|
2026-06-04 20:47:00 +02:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
2026-06-24 13:26:40 +02:00
|
|
|
echo "==> wiki-lint --strict"
|
|
|
|
|
./scripts/wiki-lint --strict
|
|
|
|
|
|
2026-06-04 20:47:00 +02:00
|
|
|
echo "All checks passed."
|