فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
ci(a02): run PowerShell 5.1 no-SQL preflight selftest on Windows
davoodmehraban89 committed
Oct 30, 2026 at 17:12 UTC
1b684294982960ee5edc0b7064fa0ecd6545b94d
1 file changed
+9
.github/workflows/pr-quality-gates.yml
+9
@@ -61,6 +61,15 @@ jobs:
61
run: npm ci
62
- name: Windows integration regression
63
run: npm test
64
+ - name: A02 SQL backup preflight selftest (read-only; no SQL instance/data)
65
+ shell: pwsh
66
+ run: |
67
+ $output = & powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File './scripts/a02-sql-backup-readonly-preflight.ps1' -SelfTest
68
+ if ($LASTEXITCODE -ne 0) { throw 'A02 PowerShell selftest failed' }
69
+ $result = ($output | Out-String | ConvertFrom-Json)
70
+ if ($result.status -ne 'selftest-passed' -or $result.databaseModified -ne $false -or $result.canImport -ne $false -or $result.connectionOpened -ne $false) {
71
+ throw 'A02 PowerShell selftest safety result invalid'
72
+ }
73
- name: Build Tauri installer
74
run: npm exec tauri build
75
- name: Inspect produced Windows x64 installer and checksum