ci: wait for site healthy before running Playwright E2E

Site is down during docker rebuild — wait up to 60s for /api/stats
to respond before running browser tests.
This commit is contained in:
you
2026-03-24 02:50:19 +00:00
parent 716a7cee02
commit 037f3b3ae2
+10
View File
@@ -90,6 +90,16 @@ jobs:
meshcore-analyzer
echo "Deployed $(git rev-parse --short HEAD)"
- name: Wait for site to be healthy
run: |
for i in $(seq 1 30); do
if curl -sf https://analyzer.00id.net/api/stats > /dev/null 2>&1; then
echo "Site is healthy after ${i}s"
break
fi
sleep 2
done
- name: Install dependencies for E2E
run: npm ci --production=false