lighthouse
Some checks failed
deploy to production / deploy (push) Failing after 1m23s

This commit is contained in:
Robin Grenzdörfer 2023-12-05 21:37:09 +00:00
parent 507b93180a
commit 800b60e88d

View File

@ -83,7 +83,7 @@ jobs:
- name: Start Live Server
run: |
docker run -d -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server
docker run -d --name live-server-container -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server
- name: Wait for Live Server
run: |
@ -92,6 +92,7 @@ jobs:
while ! curl --output /dev/null --silent --head --fail http://127.0.0.1:8081; do
if [ $attempts -eq $max_attempts ]; then
echo "Live server not ready after $max_attempts attempts"
docker logs live-server-container
exit 1
fi
attempts=$((attempts+1))