We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b47fd09 commit 74c9eceCopy full SHA for 74c9ece
.github/workflows/ci.yml
@@ -51,11 +51,16 @@ jobs:
51
52
- name: Smoke test (server starts without crashing)
53
run: |
54
- timeout 5 node dist/index.js || code=$?
55
- if [ "${code:-0}" -eq 124 ]; then
56
- echo "Server started and ran for 5s without crashing."
+ sleep 5 | node dist/index.js &
+ PID=$!
+ sleep 3
57
+ if kill -0 "$PID" 2>/dev/null; then
58
+ echo "Server still running after 3s. Smoke test passed."
59
+ kill "$PID" 2>/dev/null || true
60
+ wait "$PID" 2>/dev/null || true
61
else
- echo "Server exited with code $code"
62
+ wait "$PID" 2>/dev/null
63
+ echo "Server exited early."
64
exit 1
65
fi
66
0 commit comments