فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
ci(A08): measure and upload 10k/50k synthetic performance report
davoodmehraban89 committed
Oct 14, 2026 at 23:20 UTC
5ad4c68de59d70f20ebd3538674268b3259ccbcd
1 file changed
+34
.github/workflows/a08-benchmark.yml
new
+34
@@ -0,0 +1,34 @@
1
+name: A08 synthetic performance baseline
2
+on:
3
+ pull_request:
4
+ paths:
5
+ - 'scripts/a08-benchmark.mjs'
6
+ - 'tests/a08-benchmark-fixtures.test.mjs'
7
+ - '.github/workflows/a08-benchmark.yml'
8
+ workflow_dispatch:
9
+permissions:
10
+ contents: read
11
+jobs:
12
+ synthetic-baseline:
13
+ runs-on: ubuntu-latest
14
+ timeout-minutes: 25
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ persist-credentials: false
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: '22'
22
+ cache: npm
23
+ - run: npm ci
24
+ - name: Verify deterministic fixture
25
+ run: node --test tests/a08-benchmark-fixtures.test.mjs
26
+ - name: Measure 10k products and 50k invoices
27
+ run: node --expose-gc scripts/a08-benchmark.mjs
28
+ - name: Upload measured report
29
+ uses: actions/upload-artifact@v4
30
+ with:
31
+ name: a08-synthetic-baseline
32
+ path: a08-benchmark-results.json
33
+ retention-days: 30
34
+ if-no-files-found: error