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

1 name: Public Windows runner — no private payload
2 on:
3 workflow_dispatch:
4
5 permissions:
6 contents: read
7
8 jobs:
9 probe:
10 name: Confirm free Windows runner and available lab tools
11 runs-on: windows-2022
12 timeout-minutes: 10
13 steps:
14 - name: Inspect isolated runner capabilities without confidential assets
15 shell: pwsh
16 run: |
17 $ErrorActionPreference='Stop'
18 if ($env:RUNNER_OS -ne 'Windows') { throw 'NOT_WINDOWS' }
19 [pscustomobject]@{
20 windowsVersion = (Get-CimInstance Win32_OperatingSystem).Caption
21 runnerOS = $env:RUNNER_OS
22 pwshVersion = $PSVersionTable.PSVersion.ToString()
23 node = (Get-Command node -ErrorAction SilentlyContinue).Source
24 npm = (Get-Command npm -ErrorAction SilentlyContinue).Source
25 dotnet = (Get-Command dotnet -ErrorAction SilentlyContinue).Source
26 sevenZip = (Get-Command 7z -ErrorAction SilentlyContinue).Source
27 sqlcmd = (Get-Command sqlcmd -ErrorAction SilentlyContinue).Source
28 sqlServiceInstalled = @((Get-Service -Name 'MSSQL*' -ErrorAction SilentlyContinue)).Count -gt 0
29 privateV6TestExecuted = $false
30 sourcePublished = $false
31 } | ConvertTo-Json -Depth 3
32 Write-Host "PUBLIC_WINDOWS_VM_PROBE_PASS"