From 4fc33cd88be10adc12396629ef6f60c0a604a339 Mon Sep 17 00:00:00 2001 From: robin Date: Tue, 5 Dec 2023 21:30:23 +0000 Subject: [PATCH] lighthouse --- .gitea/workflows/deploy.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6d4865a..3c7a34f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -84,9 +84,17 @@ jobs: - name: Start Live Server run: | docker run -d -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server - - name: Test HTTP Request + + - name: Wait for Live Server run: | - curl http://127.0.0.1:8081 + for i in {1..10}; do # tries 10 times at 5-second intervals + curl http://127.0.0.1:8081 && break + echo "Waiting for live-server to be ready..." + sleep 5 + done + + - name: Test HTTP Request + run: curl http://127.0.0.1:8081 #- name: staging api testtest # if: github.ref == 'refs/heads/dev'