try with updated wait script

This commit is contained in:
einhornimmond 2024-12-20 14:13:26 +01:00
parent 7a2243437e
commit 39c7d1fe98

View File

@ -51,9 +51,19 @@ jobs:
- name: Wait for the frontend to be ready
run: |
for i in {1..10}; do
curl -s http://localhost:3000/login && break || sleep 5
if curl -s --connect-timeout 5 http://localhost:3000/login > /dev/null; then
break
else
echo "Connection failed. Try $i from 10. Wait 5 Seconds..."
sleep 5
fi
done
if [ $i -eq 10 ]; then
echo "Server not reachable after 10 tries."
exit 1
fi
- name: End-to-end tests | run tests
id: e2e-tests
run: |