From 233c445341b2c216806a318faddd74be05bf932e Mon Sep 17 00:00:00 2001 From: resonic-user Date: Thu, 19 Jun 2025 23:08:56 +0200 Subject: [PATCH] wait for services --- .github/workflows/cache-verify.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cache-verify.yml b/.github/workflows/cache-verify.yml index a205ecc35..a7e843394 100644 --- a/.github/workflows/cache-verify.yml +++ b/.github/workflows/cache-verify.yml @@ -177,7 +177,7 @@ jobs: runs-on: ubuntu-latest env: jobs: 8 - PATH: "/opt:${{ env.PATH }}" + PATH: "/opt:${PATH}" strategy: matrix: job: [1, 2, 3, 4, 5, 6, 7, 8] @@ -235,11 +235,14 @@ jobs: - name: Wait for services run: | - for i in {1..30}; do + for i in {1..60}; do curl -sf http://localhost:3000 && echo "✅ Webapp ready" && break - echo "Waiting... ($i/30)" + echo "Waiting... ($i/60)" sleep 2 done + echo "❌ Timeout: webapp did not start in time" + docker compose logs + exit 1 - name: Full stack tests | run tests id: e2e-tests