Skip to content

Commit

Permalink
Create citest file
Browse files Browse the repository at this point in the history
  • Loading branch information
JN-Hernandez committed May 14, 2024
1 parent eb2f899 commit 6dd96f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,6 @@ jobs:
- name: Run setup script
run: ./scripts/setup

- name: Run server
run: |
./scripts/server >/dev/null 2>&1 &
echo "SERVER_PID=$!" >> "$GITHUB_ENV"
- name: Check server
run: |
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
netstat -tuln | grep ':8090'
- name: Stop server
run: |
echo "Stopping Server by killing $SERVER_PID"
kill $SERVER_PID
- name: Run test
run: ./scripts/citest

6 changes: 6 additions & 0 deletions scripts/citest
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -ex

./scripts/server >/dev/null 2>&1 &
sleep 5
./scripts/test

0 comments on commit 6dd96f4

Please sign in to comment.