@davoodmehraban89 / Factor-easy / commits / 8c9b193
Fork 0

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

test: add D1 disposable PostgreSQL behavioral gate

davoodmehraban89 committed Oct 1, 2026 at 22:21 UTC 8c9b1931ccf3affd552d63df9029d9e6f34acb89
1 file changed +37
.github/workflows/quality.yml
+37
@@ -123,3 +123,40 @@ jobs:
123 run: node scripts/office-c8-concurrency.mjs
124 - name: Execute C8 private-entry and index assertions
125 run: psql -v ON_ERROR_STOP=1 -h 127.0.0.1 -U postgres -d finora_c8 -f supabase/tests/office_c8_runtime_security.sql
126 +
127 + d1-request-database:
128 + runs-on: ubuntu-latest
129 + services:
130 + postgres:
131 + image: postgres:17-alpine
132 + env:
133 + POSTGRES_USER: postgres
134 + POSTGRES_PASSWORD: postgres
135 + POSTGRES_DB: finora_d1
136 + ports:
137 + - 5433:5432
138 + options: >-
139 + --health-cmd "pg_isready -U postgres -d finora_d1"
140 + --health-interval 5s
141 + --health-timeout 5s
142 + --health-retries 10
143 + env:
144 + PGPASSWORD: postgres
145 + PGHOST: 127.0.0.1
146 + PGPORT: 5433
147 + PGUSER: postgres
148 + PGDATABASE: finora_d1
149 + steps:
150 + - uses: actions/checkout@v7
151 + - name: Install PostgreSQL client
152 + run: sudo apt-get update -qq && sudo apt-get install -y postgresql-client
153 + - name: Bootstrap disposable D1 database
154 + run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d1_bootstrap.sql
155 + - name: Apply D1 foundation
156 + run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001204500_request_workflow_d1_foundation.sql
157 + - name: Apply D1 transition evidence hardening
158 + run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001205500_request_workflow_d1_transition_evidence.sql
159 + - name: Apply D1 RPC security hardening
160 + run: psql -v ON_ERROR_STOP=1 -f supabase/migrations/20261001210500_request_workflow_d1_rpc_security.sql
161 + - name: Execute D1 behavioral assertions
162 + run: psql -v ON_ERROR_STOP=1 -f supabase/tests/request_d1_behavior.sql