ci: pre-push hook + check suite + 35-assertion integration tests + deploy smoke script + Gitea Actions workflow
ci / test (push) Failing after 1m0s

This commit is contained in:
root
2026-10-16 21:09:43 +08:00
parent 4e342ee77c
commit 9732942749
6 changed files with 255 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# 防两类事故:改动没进版本库(pathspec 漏提交)+ 红了还推
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
if [ -n "$(git status --porcelain)" ]; then
echo "✗ 工作区有未提交变更,push 已阻止(改动必须先进版本库):" >&2
git status --porcelain >&2
exit 1
fi
node scripts/check.mjs
node scripts/test-integration.mjs
echo "✓ pre-push 检查全部通过"