Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Test live WAL backup, corruption/no-overwrite recovery and finance regressions in three isolated CI perspectives
davoodmehraban89 committed
Oct 23, 2026 at 14:49 UTC
51f486918bee35cb82a49e3fdb928b6ddf16d45d
1 file changed
+57
.github/workflows/v7-sqlite-backup-three-angle-once.yml
new
+57
@@ -0,0 +1,57 @@
1
+name: V7 SQLite recovery functional security edge independent CI
2
+on:
3
+ push:
4
+ paths:
5
+ - .github/workflows/v7-sqlite-backup-three-angle-once.yml
6
+ workflow_dispatch:
7
+permissions:
8
+ contents: read
9
+jobs:
10
+ functional:
11
+ name: Functional finance and recovery QA
12
+ runs-on: ubuntu-22.04
13
+ timeout-minutes: 25
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ persist-credentials: false
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '22'
21
+ - run: npm ci --ignore-scripts
22
+ - run: npm test
23
+ - run: npm run typecheck
24
+ - run: npm run lint
25
+ - run: npm run build
26
+ - run: npm run smoke
27
+ - run: echo GATE_PASS_FULL_FINANCE_RECOVERY_FUNCTIONAL
28
+ security:
29
+ name: Code security and backup integrity QA
30
+ runs-on: ubuntu-22.04
31
+ timeout-minutes: 25
32
+ steps:
33
+ - uses: actions/checkout@v4
34
+ with:
35
+ persist-credentials: false
36
+ - uses: actions/setup-node@v4
37
+ with:
38
+ node-version: '22'
39
+ - run: npm ci --ignore-scripts
40
+ - run: npm audit --omit=dev --audit-level=low
41
+ - run: npm run typecheck
42
+ - run: npx vitest run src/platform/local/verified-sqlite-backup.test.ts src/platform/application/treasury-service-atomic-audit.test.ts
43
+ - run: echo GATE_PASS_SECURITY_BACKUP_SNAPSHOT_NO_OVERWRITE
44
+ edge:
45
+ name: WAL racing and corrupted recovery edge QA
46
+ runs-on: ubuntu-22.04
47
+ timeout-minutes: 25
48
+ steps:
49
+ - uses: actions/checkout@v4
50
+ with:
51
+ persist-credentials: false
52
+ - uses: actions/setup-node@v4
53
+ with:
54
+ node-version: '22'
55
+ - run: npm ci --ignore-scripts
56
+ - run: npx vitest run src/platform/local/verified-sqlite-backup.test.ts src/platform/application/treasury-service-concurrent-guard.test.ts src/platform/application/treasury-service-dispatch-reservation.test.ts
57
+ - run: echo GATE_PASS_EDGE_WAL_RECOVERY_AND_NO_REPEAT_BANK_DISPATCH