Skip to content

Commit

Permalink
Refactor E2E workflow to use status-check.sh script for server availa…
Browse files Browse the repository at this point in the history
…bility check
  • Loading branch information
simlarsen committed Apr 26, 2024
1 parent a711904 commit f22ae58
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/test.e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,8 @@ jobs:
with:
node-version: 18.3.0
- run: npm run dev
- run: |
# Check /status/live to see if the server is up. If the server is not up then wait for 30 seconds and try again. Keep trying for 30 minutes.
for i in {1..60}; do
if curl -s http://localhost/status/live; then
break
fi
sleep 30
done
- name: Wait for server to start
run: bash ./Tests/Scripts/status-check.sh http://localhost
- name: Run E2E Tests. Run docker container e2e in docker compose file
run: docker-compose -f docker-compose.dev.yml up --exit-code-from e2e --abort-on-container-exit e2e || (docker-compose -f docker-compose.dev.yml logs e2e && exit 1)

Expand Down

0 comments on commit f22ae58

Please sign in to comment.