Skip to content

Commit

Permalink
Troubleshooting PID
Browse files Browse the repository at this point in the history
  • Loading branch information
JN-Hernandez committed May 14, 2024
1 parent 2da37af commit 5e04bf7
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
workflow_dispatch:

jobs:
compile-then-test:
name: Compile scala then run tests
compile-then-run-server:
name: Compile scala then run server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -38,15 +38,22 @@ jobs:
- name: Run server
run: |
./scripts/server >/dev/null 2>&1 &
SERVER_PID=$!
echo "export SERVER_PID=$!" >> $GITHUB_ENV"
- name: Run test script
run: |
sleep 15
curl localhost:8090/pong
run-tests:
name: Run tests against server
runs-on: ubuntu-latest
needs: compile-then-run-server
env:
SERVER_PID: ${{ needs.compile-then-run-server.outputs.SERVER_PID}}
steps:
# - name: Run test script
# run: |
# sleep 15
# curl localhost:8090/pong

- name: Stop server
run: |
echo $SERVER_PID
kill $SERVER_PID
# kill $SERVER_PID

0 comments on commit 5e04bf7

Please sign in to comment.