Files
Genarrative/scripts/check-repository-ci.sh
T
kdletters b8dc3fe1b1
Project CI / Repository checks (push) Failing after 1m3s
Project CI / Frontend tests (push) Successful in 3m3s
Project CI / Backend tests (push) Successful in 4m3s
Project CI / Native shell tests (push) Failing after 3h0m0s
修复AGC登录网络错误与构建门禁
- 登录页归一网络错误并避免暴露底层 transport 文本

- 补充拒绝连接提示与错误信息脱敏回归测试

- master 推送门禁增加 AGC AppSurface 验证
2026-08-18 22:15:49 +08:00

27 lines
842 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
npm run check:content
git diff --check "${base_ref}"..."${head_ref}"