mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
try with updated wait script
This commit is contained in:
parent
7a2243437e
commit
39c7d1fe98
12
.github/workflows/test_e2e.yml
vendored
12
.github/workflows/test_e2e.yml
vendored
@ -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: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user