mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
workflow
This commit is contained in:
parent
649b6b7878
commit
698fedd2bc
1 changed files with 0 additions and 14 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -22,28 +22,14 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Check if server is already running
|
||||
id: check-server
|
||||
run: |
|
||||
if lsof -Pi :8080 -sTCP:LISTEN -t >/dev/null ; then
|
||||
echo "Server is already running"
|
||||
exit 0
|
||||
else
|
||||
echo "Server is not running"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Start server if not already running
|
||||
if: steps.check-server.outcome == 'failure'
|
||||
run: npm run start-test-server
|
||||
|
||||
- name: Wait for server to start
|
||||
if: steps.check-server.outcome == 'failure'
|
||||
run: sleep 30
|
||||
|
||||
- name: Test server response
|
||||
run: npm run test-400
|
||||
|
||||
- name: Stop server after testing
|
||||
if: steps.check-server.outcome == 'failure'
|
||||
run: pkill node || true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue