From 69e0a933a7a8356a0b6c456bd67e188e1878bcaf Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Fri, 1 Mar 2024 12:54:27 +0100 Subject: [PATCH] ci(gh-workflows): wait for grafana server before running e2e tests --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90639ba..7c5dfab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,14 @@ jobs: if: steps.check-for-e2e.outputs.has-e2e == 'true' run: docker-compose up -d + - name: Wait for grfana server + uses: nev7n/wait_for_response@v1 + with: + url: 'http://localhost:3000/' + responseCode: 200 + timeout: 60000 + interval: 500 + - name: Run e2e tests if: steps.check-for-e2e.outputs.has-e2e == 'true' run: npm run test:playwright