From 86d5868ac0cc902b992a86e12c1206f8ffb56d04 Mon Sep 17 00:00:00 2001 From: Sebastian Choren Date: Tue, 7 Nov 2023 10:51:10 -0300 Subject: [PATCH] check for poke api readiness --- .github/workflows/docker.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index cdd003b..64544b2 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -54,6 +54,9 @@ jobs: uses: isbang/compose-action@v1.5.1 with: compose-file: docker-compose.agent.yml + - name: Wait for pokeshop services + run: | + timeout 60 bash -c 'until echo > /dev/tcp/localhost/8081; do sleep 1; done; echo "pokeshop http api ready"' - name: Run tracetests run: | export TRACETEST_TOKEN=${{ secrets.TRACETEST_TOKEN }}