@davoodmehraban89 / Factor-easy / commits / 6004a19
Fork 0

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

ci: execute C8 policy SQL in disposable PostgreSQL

davoodmehraban89 committed Oct 1, 2026 at 21:06 UTC 6004a1985705a0086b67735bdf61493a8eb74e94
1 file changed +29
.github/workflows/quality.yml
+29
@@ -74,3 +74,32 @@ jobs:
74 run: |
75 python3 -m http.server 4173 >/tmp/finora-http.log 2>&1 &
76 npx playwright test scripts/dom-smoke.spec.js scripts/platform-office.spec.js scripts/enterprise-license.spec.js scripts/enterprise-role.spec.js scripts/enterprise-invitation.spec.js scripts/enterprise-org-ux.spec.js scripts/office-slice-c1.spec.js scripts/office-slice-c2.spec.js scripts/office-slice-c3.spec.js scripts/office-slice-c4.spec.js scripts/office-slice-c5.spec.js scripts/office-slice-c6.spec.js scripts/office-slice-c7.spec.js scripts/office-slice-c8.spec.js scripts/taxpayer-print.spec.js --reporter=line --workers=1
77 +
78 + c8-policy-database:
79 + runs-on: ubuntu-latest
80 + services:
81 + postgres:
82 + image: postgres:17-alpine
83 + env:
84 + POSTGRES_USER: postgres
85 + POSTGRES_PASSWORD: postgres
86 + POSTGRES_DB: finora_c8
87 + ports:
88 + - 5432:5432
89 + options: >-
90 + --health-cmd "pg_isready -U postgres -d finora_c8"
91 + --health-interval 5s
92 + --health-timeout 5s
93 + --health-retries 10
94 + env:
95 + PGPASSWORD: postgres
96 + steps:
97 + - uses: actions/checkout@v7
98 + - name: Install PostgreSQL client
99 + run: sudo apt-get update -qq && sudo apt-get install -y postgresql-client
100 + - name: Bootstrap disposable C8 database
101 + run: psql -v ON_ERROR_STOP=1 -h 127.0.0.1 -U postgres -d finora_c8 -f supabase/tests/office_c8_bootstrap.sql
102 + - name: Apply C8 policy migration
103 + run: psql -v ON_ERROR_STOP=1 -h 127.0.0.1 -U postgres -d finora_c8 -f supabase/migrations/20261001173125_office_slice_c8_workflow_policy.sql
104 + - name: Execute C8 policy behavioral assertions
105 + run: psql -v ON_ERROR_STOP=1 -h 127.0.0.1 -U postgres -d finora_c8 -f supabase/tests/office_c8_workflow.sql