Skip to content

Commit

Permalink
Add check server
Browse files Browse the repository at this point in the history
  • Loading branch information
JN-Hernandez committed May 14, 2024
1 parent aee54ae commit 14eb791
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ jobs:
./scripts/server >/dev/null 2>&1 &
echo "SERVER_PID=$!" >> "$GITHUB_ENV"
- name: Run test script
- name: Check server
run: |
sleep 15
curl localhost:8090/pong
if ps -p "${SERVER_PID}" > /dev/null; then
echo "Server script is running with PID: ${SERVER_PID}"
else
echo "Server script is not running."
exit 1
fi
- name: Stop server
run: |
Expand Down

0 comments on commit 14eb791

Please sign in to comment.