Skip to content

Commit fdf2538

Browse files
authored
Update cypress-test.yml
1 parent 983e813 commit fdf2538

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/cypress-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ jobs:
2626

2727
- name: Wait for Frontend to start
2828
run: |
29-
until curl -sf http://localhost:3000/; do
29+
timeout=160
30+
while ! curl -s http://localhost:3000 > /dev/null; do
3031
echo "Waiting for frontend to start..."
3132
sleep 5
33+
timeout=$((timeout - 5))
34+
if [ $timeout -le 0 ]; then
35+
echo "Frontend did not start in time"
36+
exit 1
37+
fi
3238
done
3339
3440
- name: Run Emulator

0 commit comments

Comments
 (0)