Skip to content

Commit 74c9ece

Browse files
committed
fix: smoke test for stdio MCP server in CI
Made-with: Cursor
1 parent b47fd09 commit 74c9ece

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ jobs:
5151

5252
- name: Smoke test (server starts without crashing)
5353
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."
54+
sleep 5 | node dist/index.js &
55+
PID=$!
56+
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
5761
else
58-
echo "Server exited with code $code"
62+
wait "$PID" 2>/dev/null
63+
echo "Server exited early."
5964
exit 1
6065
fi
6166

0 commit comments

Comments
 (0)