Skip to content

Commit

Permalink
Fix GitHub Actions workflow: improve frontend and emulator startup ch…
Browse files Browse the repository at this point in the history
…ecks

- Added a loop to wait for the frontend to start before proceeding
- Increased robustness of frontend readiness check
- Minor improvements to process termination logic
  • Loading branch information
viniblack committed Nov 19, 2024
1 parent e6f159f commit 983e813
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cypress-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
run: yarn dev & echo $! > frontend_pid.txt

- name: Wait for Frontend to start
run: sleep 10
run: |
until curl -sf http://localhost:3000/; do
echo "Waiting for frontend to start..."
sleep 5
done
- name: Run Emulator
run: yarn emulator & echo $! > emulator_pid.txt
Expand Down

0 comments on commit 983e813

Please sign in to comment.