@davoodmehraban89 / Factor-easy / commits / b9ea569
Fork 0

سامانه صدور فاکتور و حسابداری

ci: provision isolated full Supabase stack for phase1A source-to-production schema diff

davoodmehraban89 committed Oct 16, 2026 at 13:02 UTC b9ea569f608a0ad319cc614bf18bdd024410aea2
1 file changed +44
.github/workflows/phase1a-supabase-parity.yml new
+44
@@ -0,0 +1,44 @@
1 +name: Finora Phase 1A Supabase CLI parity (isolated)
2 +on:
3 + push:
4 + branches:
5 + - feature/finora-phase1a-supabase-cli-20261016
6 + workflow_dispatch:
7 +
8 +permissions:
9 + contents: read
10 +
11 +concurrency:
12 + group: finora-phase1a-cli-${{ github.ref }}
13 + cancel-in-progress: true
14 +
15 +jobs:
16 + supabase-cli-parity:
17 + runs-on: ubuntu-latest
18 + timeout-minutes: 35
19 + steps:
20 + - uses: actions/checkout@v4
21 + - uses: supabase/setup-cli@v1
22 + with:
23 + version: latest
24 + - name: Prepare local Supabase config (no remote project linked)
25 + run: |
26 + supabase init --force
27 + supabase --version
28 + docker --version
29 + - name: Start isolated Supabase stack and replay checked-in migrations
30 + run: supabase start
31 + - name: Compare local catalog to read-only Production fingerprint fixture
32 + run: |
33 + PGPASSWORD=postgres psql -h 127.0.0.1 -p 54322 -U postgres -d postgres -X -qAt -v ON_ERROR_STOP=1 -f supabase/tests/phase1a_schema_fingerprint.sql > phase1a-local-schema.json
34 + node scripts/phase1a-schema-diff.mjs supabase/tests/fixtures/phase1a_production_schema_fingerprints_20261016.json phase1a-local-schema.json
35 + - name: Upload schema fingerprint diff (no private row data)
36 + if: always()
37 + uses: actions/upload-artifact@v4
38 + with:
39 + name: finora-phase1a-schema-parity-${{ github.sha }}
40 + path: |
41 + phase1a-schema-diff.json
42 + phase1a-local-schema.json
43 + retention-days: 7
44 + if-no-files-found: ignore