refactor(ECR-004): Synastry 再拆、Scale 测、Membership 守卫、OpenAPI 与 CI
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s

压合盘贴线文件;补选答单测与 nil 守卫;对齐关键 OpenAPI schemas;加 GitHub Actions 门禁。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 21:06:14 +08:00
co-authored by Cursor
parent 67701d1f7b
commit 7034c92de7
22 changed files with 1317 additions and 543 deletions
+58
View File
@@ -0,0 +1,58 @@
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
h5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run build:h5
- run: npm run test:h5
- name: Install Playwright Chromium
working-directory: apps/user-h5
run: npx playwright install --with-deps chromium
- run: npm run test:e2e -w @yuxingu/user-h5
env:
CI: true
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Unit tests (no integration DB)
working-directory: apps/api
run: go test $(go list ./... | grep -v /internal/integration) -count=1
ess-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ESS artifact presence (ECR-004)
run: |
test -f docs/ECR/ECR-004-hygiene-followup.md
test -f docs/TASKS/TASK-20260805-ECR004.yaml
test -f docs/TEST_REPORT/ECR-004.md
test -f docs/STATE/ECR-004.md
echo "ESS docs gate OK"
- name: ess-validate when ESS_ROOT available
env:
ESS_ROOT: ${{ vars.ESS_ROOT }}
run: |
if [ -n "$ESS_ROOT" ] && [ -f "$ESS_ROOT/scripts/ess-validate.py" ]; then
python scripts/ess-validate.py --phase coding --ecr ECR-004 --task docs/TASKS/TASK-20260805-ECR004.yaml
else
echo "ESS_ROOT not configured in CI — skipped full ess-validate"
fi