Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

1 name: V7 production HTTP guard three independent QA perspectives
2 on:
3 push:
4 paths:
5 - .github/workflows/v7-production-three-angle-qa-once.yml
6 workflow_dispatch:
7 permissions:
8 contents: read
9 jobs:
10 functional:
11 name: Functional QA (hosted Linux)
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: node --check electron/main.cjs && node --check electron/ready-check.cjs
23 - run: npm run typecheck
24 - run: npm test
25 - run: npm run lint
26 - run: npm run build
27 - run: npm run smoke
28 - run: echo GATE_PASS_FUNCTIONAL_QA_HTTP_GUARD
29 security:
30 name: Security and code quality (separate hosted Linux)
31 runs-on: ubuntu-22.04
32 timeout-minutes: 25
33 steps:
34 - uses: actions/checkout@v4
35 with:
36 persist-credentials: false
37 - uses: actions/setup-node@v4
38 with:
39 node-version: '22'
40 - run: npm ci --ignore-scripts
41 - run: npm run typecheck && npm run lint && npm test -- --reporter=dot
42 - run: npx --no-install vitest run src/platform/application/treasury-service-atomic-audit.test.ts
43 - run: npm run build
44 - run: node qa/scripts/production-http-security.mjs
45 - run: echo GATE_PASS_SECURITY_SPOOF_AND_UNAUTHORIZED_WRITES
46 edge:
47 name: Edge case and misuse QA (separate hosted Linux)
48 runs-on: ubuntu-22.04
49 timeout-minutes: 25
50 steps:
51 - uses: actions/checkout@v4
52 with:
53 persist-credentials: false
54 - uses: actions/setup-node@v4
55 with:
56 node-version: '22'
57 - run: npm ci --ignore-scripts
58 - run: npm run build
59 - run: npx --no-install vitest run src/platform/application/treasury-service-atomic-audit.test.ts
60 - run: node qa/scripts/production-http-edge-cases.mjs
61 - run: echo GATE_PASS_EDGE_CASE_QA_UNUSUAL_URLS
62 - run: echo GATE_PASS_SECOND_REVIEW_WITH_LIVE_BANK_CONFIG_FAIL_CLOSED_UNIT_TESTS