فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
ci(A04): make prebuilt Windows native backup regression a manual reusable workflow
davoodmehraban89 committed
Oct 16, 2026 at 19:13 UTC
6db8b9ea9b5cb44ade2d0b24245019c21d8a31f9
1 file changed
+65
.github/workflows/a04-fast-native-backup-regression.yml
new
+65
@@ -0,0 +1,65 @@
1
+name: A04 Windows fast native backup regression (prebuilt installer)
2
+
3
+on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ artifact_run_id:
7
+ description: 'Successful PR-quality run containing factor-easypro-windows-pr-preview; verify it matches the tested product source'
8
+ required: true
9
+ type: string
10
+ expected_version:
11
+ description: 'Version displayed by the NSIS preview installer'
12
+ required: true
13
+ type: string
14
+ default: '2.0.3'
15
+
16
+permissions:
17
+ contents: read
18
+ actions: read
19
+
20
+jobs:
21
+ fast-native-smoke:
22
+ runs-on: windows-latest
23
+ timeout-minutes: 20
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ with:
27
+ persist-credentials: false
28
+ - uses: actions/setup-node@v4
29
+ with:
30
+ node-version: '22'
31
+ - name: Validate run ID, version and completed preview source
32
+ shell: pwsh
33
+ env:
34
+ GH_TOKEN: ${{ github.token }}
35
+ SOURCE_RUN: ${{ inputs.artifact_run_id }}
36
+ EXPECTED_VERSION: ${{ inputs.expected_version }}
37
+ run: |
38
+ if ($env:SOURCE_RUN -notmatch '^[0-9]+$') { throw 'Run ID must be numeric' }
39
+ if ($env:EXPECTED_VERSION -notmatch '^\d+\.\d+\.\d+$') { throw 'Version must be semantic' }
40
+ $info = gh api "repos/$env:GITHUB_REPOSITORY/actions/runs/$env:SOURCE_RUN" | ConvertFrom-Json
41
+ if ($info.conclusion -ne 'success') { throw 'Prebuilt installer source workflow has not passed' }
42
+ Write-Host ("Source run: " + $info.html_url + " commit: " + $info.head_sha)
43
+ - name: Fetch a checksum-verified previous Windows NSIS preview
44
+ uses: actions/download-artifact@v4
45
+ with:
46
+ run-id: ${{ inputs.artifact_run_id }}
47
+ github-token: ${{ github.token }}
48
+ name: factor-easypro-windows-pr-preview
49
+ path: test-installer
50
+ - name: Execute the installed native application and encrypted backup UI
51
+ shell: pwsh
52
+ env:
53
+ EXPECTED_VERSION: ${{ inputs.expected_version }}
54
+ run: |
55
+ $files = @(Get-ChildItem test-installer -Recurse -Filter '*x64-setup.exe')
56
+ if ($files.Count -ne 1) { throw 'Expected exactly one x64 NSIS preview' }
57
+ ./scripts/windows-vm-fast-native-backup-smoke.ps1 -Installer $files[0].FullName -ExpectedVersion $env:EXPECTED_VERSION
58
+ - name: Upload synthetic evidence including failures
59
+ if: always()
60
+ uses: actions/upload-artifact@v4
61
+ with:
62
+ name: a04-fast-native-company-backup-evidence
63
+ path: ${{ runner.temp }}/factor-fast-native-backup-lab/reports/*.json
64
+ retention-days: 14
65
+ if-no-files-found: warn