Files
Genarrative/scripts/check-repository-ci.sh
T
kdletters 46baebbc10
Project CI / Repository checks (push) Successful in 3m8s
Project CI / Frontend tests (push) Successful in 3m26s
Project CI / Backend tests (push) Successful in 3m58s
Project CI / Native shell tests (push) Successful in 15m16s
清理过期测试与门禁
删除退役内容校验、视觉小说墓碑脚本和旧玩法门禁文档

移除死别名与退役分支触发并同步当前文档入口

为Gitea和Jenkins补齐可信SpacetimeDB schema比较基线

补充workflow、schema和生产运维防回归测试
2026-08-21 12:20:43 +08:00

26 lines
820 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
base_ref="${SPACETIME_SCHEMA_BASE_REF:-${1:-}}"
head_ref="${REPOSITORY_CI_HEAD_REF:-${2:-HEAD}}"
if [[ -z "${base_ref}" ]]; then
echo '[repository-ci] 缺少比较基线;请设置 SPACETIME_SCHEMA_BASE_REF 或传入第一个参数。' >&2
exit 1
fi
git cat-file -e "${base_ref}^{commit}" 2>/dev/null || {
echo "[repository-ci] 比较基线不可用: ${base_ref}" >&2
exit 1
}
git cat-file -e "${head_ref}^{commit}" 2>/dev/null || {
echo "[repository-ci] 待检查提交不可用: ${head_ref}" >&2
exit 1
}
echo "[repository-ci] base=${base_ref} head=$(git rev-parse "${head_ref}")"
SPACETIME_SCHEMA_BASE_REF="${base_ref}" npm run lint
npm run test -- apps/ai-game-creator-shell/tests/appSurface.test.ts
npm run build
git diff --check "${base_ref}"..."${head_ref}"