From 04e06429bc9d7f67972b696f08fb2442e18fc029 Mon Sep 17 00:00:00 2001 From: resonic-user Date: Sun, 15 Jun 2025 20:18:45 +0000 Subject: [PATCH] shell wait --- .github/workflows/test-e2e.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 4228c5901..2e4f581f2 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -65,9 +65,6 @@ jobs: cd .. yarn install - - name: Install wait-on (temporary) - run: yarn add --no-lockfile wait-on - - name: Cache cypress uses: actions/cache@v4 with: @@ -135,9 +132,9 @@ jobs: docker load -i /tmp/mailserver.tar || true docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach backend mailserver webapp - - name: Wait for webapp to be ready + - name: Wait for webapp run: | - npx wait-on http://localhost:3000 --timeout 120000 + for i in {1..30}; do curl -sf http://localhost:3000 && exit 0 || sleep 2; done; exit 1 - name: Full stack tests | run tests id: e2e-tests