From a176e29388a7cdbfeb1e75736b74b555a678c519 Mon Sep 17 00:00:00 2001 From: jheaps Date: Wed, 24 Sep 2025 14:06:03 -0600 Subject: [PATCH] update action --- .github/workflows/playwright-tests.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwright-tests.yml b/.github/workflows/playwright-tests.yml index 4026983..984f74d 100644 --- a/.github/workflows/playwright-tests.yml +++ b/.github/workflows/playwright-tests.yml @@ -28,16 +28,19 @@ jobs: run: | cd JoshHeaps.Net.UiTests 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 run: | cd JoshHeaps.Net dotnet run --urls "https://localhost:7118" & echo $! > server.pid - # Wait for server to start - 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..." - sleep 5 + # Wait for server to start - try health endpoint first, then chess page + echo "Waiting for server to start..." + 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 run: |