PureYAML/scripts/check-all.sh
Mihaela Mihaljevic 1dc986f146 docs(readme): retire the stale Mermaid roadmap and its dead CI gate
The roadmap diagrams referenced issue numbers (#1, #8-#13, #43-#55) that no
longer exist on Codeberg: the GitHub to Codeberg migration reset this repo's
issue tracker, and those numbers were never re-created. scripts/check-roadmap.sh
existed only to keep that roadmap in sync with GitHub epic-labeled issues via
gh, which can't resolve a Codeberg/Forgejo repo anyway, so the gate had been a
silent no-op since the move. Removed the roadmap section, the gate script, its
two call sites, and its now-pointless rule doc, and pointed the remaining
work at the real, live issues (#4, #5, #6, #7, tracked under epic #8). Also
fixed two leftover Mihaela/PureYAML references in docs/RELEASE.md.
2026-07-09 23:38:23 +02:00

40 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# Full local verification gate for PureYAML.
#
# Runs the checks required before completion, including the Claw Mini Linux
# check when executed from macOS and the WASM SDK build check.
set -euo pipefail
# Exit code 77 from a gate means "skipped: runner/infrastructure unavailable"
# (see scripts/check-linux.sh). A skip is non-fatal and must not block the
# push; a real failure (any other non-zero) still aborts the whole gate.
SKIP=77
run_gate() {
name="$1"
shift
printf '\n==> %s\n' "$name"
set +e
"$@"
status=$?
set -e
if [ "$status" -eq "$SKIP" ]; then
printf ' SKIPPED (runner unavailable; authoritative gate runs on CI)\n'
return 0
fi
return "$status"
}
run_gate "style" bash scripts/check-style.sh
run_gate "namespacing" bash scripts/check-namespacing.sh
run_gate "validation coverage" bash scripts/check-validation-coverage.sh
run_gate "forbidden patterns" bash scripts/check-forbidden-patterns.sh
run_gate "changelog" bash scripts/check-changelog-touched.sh
run_gate "swiftformat" swiftformat . --config .swiftformat --lint
run_gate "swiftlint" swiftlint --config .swiftlint.yml --strict
run_gate "swift build" swift build
run_gate "swift test" swift test
run_gate "linux" bash scripts/check-linux.sh
run_gate "wasm" bash scripts/check-wasm.sh