From 037f3b3ae2676975e3987c2863ea63f190cfdbf4 Mon Sep 17 00:00:00 2001 From: you Date: Tue, 24 Mar 2026 02:50:19 +0000 Subject: [PATCH] ci: wait for site healthy before running Playwright E2E MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Site is down during docker rebuild — wait up to 60s for /api/stats to respond before running browser tests. --- .github/workflows/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b56637cd..2fffe3b9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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