From c02e63c38a19e315f8da22c4cf40a0a9fb1dccb6 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Tue, 9 Apr 2024 16:16:05 +0200 Subject: [PATCH] test --- .github/workflows/impress-frontend.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/impress-frontend.yml b/.github/workflows/impress-frontend.yml index 6a4e18e8b..badd852f1 100644 --- a/.github/workflows/impress-frontend.yml +++ b/.github/workflows/impress-frontend.yml @@ -132,6 +132,22 @@ jobs: run: | docker-compose build --pull --build-arg BUILDKIT_INLINE_CACHE=1 make run + + - name: Wait for the Webrtc server to be ready + run: | + echo "Waiting for the Webrtc server to be ready..." + until $(curl --output /dev/null --silent --head --fail http://localhost:4444); do + printf '.' + sleep 1 + done + + response=$(curl --silent http://localhost:4444) + if [[ "$response" == *"okey"* ]]; then + echo "Webrtc server is ready." + else + echo "Webrtc server has a problem: $response" + exit 1 + fi - name: Apply DRF migrations run: |