Skip to content

Commit 6343db7

Browse files
committed
refactor: stop background process of testservice after test
1 parent 62bfa16 commit 6343db7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/precommit-crit-flows.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ jobs:
207207
curl -s -o /dev/null -w "HTTP %{http_code}\n" https://wire-webapp-precommit.zinfra.io/
208208
209209
- name: Start Testservice in background
210-
run: java -jar testservice/build/libs/testservice-*-all.jar server testservice/config.yml &
210+
id: start-testservice
211+
run: |
212+
java -jar testservice/build/libs/testservice-*-all.jar server testservice/config.yml &
213+
echo TESTSERVICE_PID=$! >> "$GITHUB_OUTPUT"
211214
212215
- name: Run critical flow tests
213216
env:
@@ -225,6 +228,11 @@ jobs:
225228
path: blob-report
226229
retention-days: 1
227230

231+
- name: Stop Testservice
232+
run: kill -SIGKILL $TESTSERVICE_PID
233+
env:
234+
TESTSERVICE_PID: ${{ steps.start-testservice.outputs.TESTSERVICE_PID }}
235+
228236
e2e-report:
229237
runs-on: ubuntu-latest
230238
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)