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

1 name: TreasuryFlow CI
2 on:
3 push:
4 branches: ['main', 'phase-*', 'release-*']
5 pull_request:
6 branches: [main]
7 jobs:
8 verify:
9 runs-on: ubuntu-latest
10 timeout-minutes: 15
11 steps:
12 - uses: actions/checkout@v4
13 - uses: actions/setup-node@v4
14 with:
15 node-version: 22
16 cache: npm
17 - run: npm ci
18 - run: npm audit --omit=dev --audit-level=high
19 - run: npm run typecheck
20 - run: npm test -- --reporter=dot
21 - run: npx eslint src --no-cache
22 - name: Verify production schema contract
23 run: npm test -- --run src/platform/persistence/schema-contract.test.ts
24 - name: Reject committed secret files
25 shell: bash
26 run: |
27 if git ls-files | grep -E '(^|/)\.env($|\.)' | grep -v '\.env\.production\.example$'; then exit 1; fi
28 - run: npm run build