We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8380f24 commit a2ed0e5Copy full SHA for a2ed0e5
.github/workflows/test.yml
@@ -42,9 +42,26 @@ jobs:
42
bun run --bun validate
43
44
- name: Validate some requests
45
+ shell: bash
46
run: |
47
+ set -euo pipefail
48
cd server
49
bun run start &
- sleep 10
- cd ../.bruno
50
+ SERVER_PID=$!
51
+ cd ..
52
+
53
+ ATTEMPTS=0
54
+ until curl -sSf http://127.0.0.1:3000/status > /dev/null; do
55
+ ATTEMPTS=$((ATTEMPTS + 1))
56
+ if [ $ATTEMPTS -ge 60 ]; then
57
+ echo "Server did not become ready within 60 seconds" >&2
58
+ kill $SERVER_PID
59
+ exit 1
60
+ fi
61
+ sleep 1
62
+ done
63
64
+ cd .bruno
65
bru run --env Developpement
66
67
0 commit comments