@davoodmehraban89 / LifeMate / commits / 3e950c5
Fork 0

LifeMate — Personal, Family & Learning Companion

ci: stabilize phase 2 checks

davoodmehraban89 committed Oct 5, 2026 at 07:36 UTC 3e950c518b885442bc333427d2217d9967b29b97
1 file changed +6 -17
.github/workflows/ci.yml
+6 -17
@@ -6,7 +6,7 @@ on:
6 pull_request:
7
8 permissions:
9 - contents: write
9 + contents: read
10
11 jobs:
12 flutter:
@@ -20,19 +20,6 @@ jobs:
20 with:
21 channel: stable
22 cache: true
23 - - name: Generate platform scaffold
24 - run: flutter create --platforms=android,web --project-name=lifemate .
25 - - name: Persist platform scaffold on branch
26 - if: github.event_name == 'push' && github.ref == 'refs/heads/phase-2/product-foundation-identity'
27 - working-directory: .
28 - run: |
29 - git config user.name github-actions[bot]
30 - git config user.email 41898282+github-actions[bot]@users.noreply.github.com
31 - git add apps/lifemate/android apps/lifemate/web apps/lifemate/.metadata
32 - if ! git diff --cached --quiet; then
33 - git commit -m "chore: persist generated Flutter Android and Web scaffold"
34 - git push
35 - fi
23 - run: flutter pub get
24 - run: dart format --output=none --set-exit-if-changed lib test
25 - run: flutter analyze
@@ -62,6 +49,8 @@ jobs:
49 - uses: actions/setup-node@v4
50 with:
51 node-version: 22
52 + cache: npm
53 + cache-dependency-path: backend/package-lock.json
54 - name: Apply migrations
55 run: |
56 psql -h localhost -U postgres -d lifemate_ci -v ON_ERROR_STOP=1 -f backend/migrations/0001_identity_family.sql
@@ -70,10 +59,10 @@ jobs:
59 run: psql -h localhost -U postgres -d lifemate_ci -v ON_ERROR_STOP=1 -f backend/tests/schema_test.sql
60 - name: Install backend
61 working-directory: backend
73 - run: npm install
74 - - name: Load API module
62 + run: npm ci
63 + - name: Backend tests
64 working-directory: backend
76 - run: node -e "import('./src/server.js').then(() => console.log('identity API loaded'))"
65 + run: npm test
66 - name: Verify schema objects
67 run: |
68 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"