Skip to content

Commit 80c4c5d

Browse files
committed
ci: run the installer test with its errors shown
1 parent 34119b4 commit 80c4c5d

1 file changed

Lines changed: 29 additions & 7 deletions

File tree

‎.github/workflows/probe.yml‎

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,32 @@ jobs:
1212
runs-on: windows-2022
1313
steps:
1414
- uses: actions/checkout@v6
15-
- name: From PowerShell 7, as the release job's Test step
16-
shell: pwsh
17-
continue-on-error: true
18-
run: .github/probe/probe.ps1
19-
- name: From PowerShell 7, with the module path reset in the script
20-
shell: pwsh
21-
run: .github/probe/probe.ps1 -Template installer-template-fixed.ps1
15+
with:
16+
submodules: recursive
17+
18+
- name: Install Qt
19+
uses: jurplel/install-qt-action@v4
20+
with:
21+
version: "6.10.3"
22+
modules: "qt5compat qtserialport"
23+
cache: true
24+
25+
- name: Configure
26+
run: cmake -S . -B build/release -G "Visual Studio 17 2022" -A x64 -DBUILD_TESTING=ON
27+
28+
- name: Build the installer test
29+
run: cmake --build build/release --config Release --parallel --target tst_update_installer
30+
31+
- name: Run the installer test as ctest does
32+
run: ctest --test-dir build/release -C Release -R update_installer --output-on-failure
33+
34+
- name: Run the installer test with its log in a file
35+
if: always()
36+
run: |
37+
$log = Join-Path $env:RUNNER_TEMP 'update_installer.txt'
38+
$env:QT_QPA_PLATFORM = 'offscreen'
39+
$process = Start-Process -FilePath build/release/Release/tst_update_installer.exe -ArgumentList '-o', "$log,txt" -NoNewWindow -PassThru
40+
$null = $process.Handle
41+
if (!$process.WaitForExit(300000)) { $process.Kill() }
42+
"exit code $($process.ExitCode)"
43+
Get-Content $log | Where-Object { $_ -notmatch '^(PASS|SKIP)' -and $_ -notmatch 'failure location' }

0 commit comments

Comments
 (0)