update action
This commit is contained in:
@@ -28,16 +28,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd JoshHeaps.Net.UiTests
|
cd JoshHeaps.Net.UiTests
|
||||||
dotnet build
|
dotnet build
|
||||||
pwsh bin/Debug/net8.0/playwright.ps1 install --with-deps
|
pwsh bin/Debug/net8.0/playwright.ps1 install chromium
|
||||||
|
sudo pwsh bin/Debug/net8.0/playwright.ps1 install-deps chromium
|
||||||
|
|
||||||
- name: Start server in background
|
- name: Start server in background
|
||||||
run: |
|
run: |
|
||||||
cd JoshHeaps.Net
|
cd JoshHeaps.Net
|
||||||
dotnet run --urls "https://localhost:7118" &
|
dotnet run --urls "https://localhost:7118" &
|
||||||
echo $! > server.pid
|
echo $! > server.pid
|
||||||
# Wait for server to start
|
# Wait for server to start - try health endpoint first, then chess page
|
||||||
timeout 60 bash -c 'until curl -k https://localhost:7118/health 2>/dev/null; do sleep 1; done' || echo "Server may not have health endpoint, continuing..."
|
echo "Waiting for server to start..."
|
||||||
sleep 5
|
timeout 60 bash -c 'until curl -k -s https://localhost:7118/health >/dev/null 2>&1 || curl -k -s https://localhost:7118/chess >/dev/null 2>&1; do echo "Waiting..."; sleep 2; done'
|
||||||
|
echo "Server appears to be running"
|
||||||
|
sleep 3
|
||||||
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user