Files

15 lines
400 B
Bash
Raw Permalink Normal View History

2026-10-18 00:29:36 +00:00
#!/usr/bin/env bash
# run_all.sh — the whole verification pipeline, one command:
# 1. validate the example game spec
# 2. run the full test suite
# Never declare success without a passing run.
set -euo pipefail
cd "$(dirname "$0")/.."
echo "== validating example game spec"
node tools/validate_game.js example/game.json
echo "== tests"
node --test tests/*.test.js | tail -n 12
echo "ALL OK"