phase9: migration test script + .gitignore cleanup + CI alembic migration gate

This commit is contained in:
Agent Zero
2026-07-29 23:17:03 +02:00
parent a2c3f797f2
commit 5088b4a735
3 changed files with 122 additions and 0 deletions
+7
View File
@@ -42,6 +42,13 @@ check "Cross-Plugin Imports" "python3 scripts/check_cross_plugin_imports.py"
# ── 3. Alembic Revision Graph ────────────────────────────────────────────────
check "Alembic Revisions" "alembic heads 2>&1 | grep -c 'head' | grep -q '^1$'"
# ── 3b. Alembic Migration Test (only if DATABASE_URL is set) ──────────────────
if [ -n "${DATABASE_URL:-}" ]; then
check "Alembic Migration Test" "bash scripts/test_migrations.sh ${DATABASE_URL}"
else
echo -e "${YELLOW}[CI] SKIP: Alembic Migration Test (no DATABASE_URL)${NC}"
fi
# ── 4. TypeScript Type Check ─────────────────────────────────────────────────
check "TypeScript Type Check" "cd frontend && npx tsc --noEmit"