15 lines
400 B
Bash
15 lines
400 B
Bash
#!/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"
|