mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-29 07:39:23 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user