Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
ci(windows): require installed native financial UI matrix and real NSIS uninstall evidence
davoodmehraban89 committed
Oct 17, 2026 at 00:21 UTC
b3914ff83a0853c381fcf48946ba4ab849a4ebff
1 file changed
+15
-1
.github/workflows/windows-vm-treasury-lab.yml
+15
-1
@@ -168,6 +168,11 @@ jobs:
168
$output=Join-Path $env:RUNNER_TEMP 'treasuryflow-vm-evidence'
169
node "$env:GITHUB_WORKSPACE/qa/windows/electron-native-gui-smoke.mjs" $app[0].FullName $output
170
if($LASTEXITCODE -ne 0){throw 'INSTALLED_ELECTRON_GUI_CDP_FAILED'}
171
+ - name: Uninstall real NSIS installation after native tests
172
+ if: steps.native.outputs.buildable == 'true'
173
+ shell: pwsh
174
+ run: |
175
+ & "$env:GITHUB_WORKSPACE/scripts/windows-vm-treasury-uninstall-smoke.ps1" -InstalledFolder (Join-Path $env:RUNNER_TEMP 'TreasuryFlow-VM-Installed')
176
- name: Record run-bound VM evidence without inferring success
177
if: always()
178
shell: pwsh
@@ -178,7 +183,8 @@ jobs:
183
@{file='unpacked-runtime.json';pass='UNPACKED_ELECTRON_HTTP_AND_PROCESS_PASS';check='unpacked_process'},
184
@{file='runtime.json';pass='PACKAGED_PROCESS_AND_HTTP_PASS';check='packaged_runtime'},
185
@{file='installed-runtime.json';pass='NSIS_INSTALL_AND_INSTALLED_RUNTIME_PASS';check='nsis_installed_runtime'},
181
- @{file='treasuryflow-native-gui.json';pass='REAL_INSTALLED_ELECTRON_GUI_PASS';check='installed_gui'}
186
+ @{file='treasuryflow-native-gui.json';pass='REAL_INSTALLED_ELECTRON_GUI_PASS';check='installed_gui'},
187
+ @{file='uninstall-runtime.json';pass='NSIS_REAL_UNINSTALL_PASS';check='real_uninstall'}
188
)
189
$results=@()
190
foreach($item in $checks){
@@ -188,6 +194,13 @@ jobs:
194
try {
195
$record=Get-Content $file -Raw | ConvertFrom-Json
196
$state=if($record.outcome -eq $item.pass){'PASS'}else{'FAILED_OR_INCOMPLETE'}
197
+ if($state -eq 'PASS' -and $item.check -eq 'installed_gui'){
198
+ $required=@('localEntry','realCDP','localOrigin','integrations','queryEditor','copyQuery','copyExactlyEditedSql','syntheticAccount','syntheticBeneficiary','syntheticDraft','appReopened','durableData','auditPersisted')
199
+ foreach($field in $required){
200
+ if(-not $record.$field){$state='FINANCIAL_UI_MATRIX_INCOMPLETE';break}
201
+ }
202
+ if(@($record.visitedRoutes).Count -ne 10){$state='ROUTE_MATRIX_INCOMPLETE'}
203
+ }
204
}catch{$state='UNREADABLE'}
205
}
206
$results+=@{name=$item.check;file=$item.file;result=$state}
@@ -227,3 +240,4 @@ jobs:
240
run: |
241
'Bank LIVE disabled. No production SQL connection, live payment, public release or actual customer data.' >> $env:GITHUB_STEP_SUMMARY
242
'Repository branch is NOT the user V5 unless a SHA-256-pinned private source archive was staged.' >> $env:GITHUB_STEP_SUMMARY
243
+ 'Local entry link is NOT a credential-authenticated login; cross-version upgrade is NOT VERIFIED without a vetted baseline installer.' >> $env:GITHUB_STEP_SUMMARY