Skip to content

Commit 1a71b46

Browse files
committed
ci update
1 parent 7a2aa3b commit 1a71b46

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ jobs:
9393
9494
- name: Start StackQL server (Windows)
9595
if: matrix.os == 'windows-latest'
96-
shell: cmd
96+
shell: pwsh
9797
run: |
98-
echo @echo off > start_server.bat
99-
echo C:\Temp\stackql.exe -v --pgsrv.port=5444 srv ^> stackql-server.log 2^>^&1 >> start_server.bat
100-
start /b "" cmd /c start_server.bat
101-
timeout /t 5 /nobreak > NUL
98+
$process = Start-Process -FilePath "C:\Temp\stackql.exe" -ArgumentList "-v", "--pgsrv.port=5444", "srv" -RedirectStandardOutput "stackql-server.log" -RedirectStandardError "stackql-server-error.log" -NoNewWindow -PassThru
99+
Write-Host "StackQL server started with PID: $($process.Id)"
100+
Start-Sleep -Seconds 5
102101
103102
- name: Run server tests
104103
env:

0 commit comments

Comments
 (0)