LifeMate — Personal, Family & Learning Companion
ci: add phase 3 schema and tests
davoodmehraban89 committed
Oct 5, 2026 at 15:06 UTC
8eba130e7c417a7ce072e3352c0913631a7a5c6a
1 file changed
+3
-2
.github/workflows/ci.yml
+3
-2
@@ -1,4 +1,4 @@
1
-name: Phase 2 CI
1
+name: Phase 3 CI
2
3
on:
4
push:
@@ -72,6 +72,7 @@ jobs:
72
run: |
73
psql -h localhost -U postgres -d lifemate_ci -v ON_ERROR_STOP=1 -f backend/migrations/0001_identity_family.sql
74
psql -h localhost -U postgres -d lifemate_ci -v ON_ERROR_STOP=1 -f backend/migrations/0002_auth.sql
75
+ psql -h localhost -U postgres -d lifemate_ci -v ON_ERROR_STOP=1 -f backend/migrations/0003_planner_school_family.sql
76
- name: Database authorization tests
77
run: psql -h localhost -U postgres -d lifemate_ci -v ON_ERROR_STOP=1 -f backend/tests/schema_test.sql
78
- name: Install backend
@@ -85,4 +86,4 @@ jobs:
86
run: npm test
87
- name: Verify schema objects
88
run: |
88
- test "$(psql -h localhost -U postgres -d lifemate_ci -Atc "select count(*) from information_schema.tables where table_schema='public' and table_name in ('app_user','profile','family_workspace','family_membership','guardian_relationship','family_invitation','access_audit','auth_credential','auth_token','auth_session');")" = "10"
89
+ test "$(psql -h localhost -U postgres -d lifemate_ci -Atc "select count(*) from information_schema.tables where table_schema='public' and table_name in ('app_user','profile','family_workspace','family_membership','guardian_relationship','family_invitation','access_audit','auth_credential','auth_token','auth_session','life_context','academic_year','academic_term','subject','class_session','plan_item','sharing_grant','reminder','notification_preference','notification_outbox','sync_mutation');")" = "21"