master-zapier-plan-draft/packages/verae-bootstrap/scripts/test.sh
George Lambert 2d51d7a0dd
Some checks are pending
offline / test (push) Waiting to run
Document catalog host moves and add per-module host-deps installer.
zapier-docs-master now has CATALOG-HOST.md (relative PDFs / rewrite-docs-host.py)
and HOST-DEPS.md. verae-bootstrap/scripts/host-deps.sh checks and installs
git, Node, native build tools, and nats-server on Debian or Alpine from
host-deps.tsv (every Forgejo module). fetch.sh runs it before clone/npm.
2026-09-11 23:12:25 -04:00

20 lines
830 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
test -f "$ROOT/repos.txt"
test -f "$ROOT/types/ns1-all-in-one/repos.txt"
test -f "$ROOT/types/control-plane/repos.txt"
test -f "$ROOT/types/ns1-archive/repos.txt"
test -f "$ROOT/types/lan-worker/repos.txt"
# every type list is a subset of the master list
while read -r name; do
[[ -z "$name" || "$name" == \#* ]] && continue
grep -qx "$name" "$ROOT/repos.txt" || { echo "type repo not in master: $name" >&2; exit 1; }
done < <(cat "$ROOT"/types/*/repos.txt)
# every Forgejo module has a host-deps row
while read -r name; do
[[ -z "$name" || "$name" == \#* ]] && continue
grep -q "^${name}|" "$ROOT/host-deps.tsv" || { echo "missing host-deps.tsv row: $name" >&2; exit 1; }
done < "$ROOT/repos.txt"
bash -n "$ROOT/scripts/host-deps.sh"
echo OK