Move cleanup into previous step in testing action

This commit is contained in:
thiloho
2024-09-03 09:56:02 +02:00
parent 0ad14beddc
commit d1d87ca953
2 changed files with 5 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
name: "Playwright tests"
name: Playwright tests
on:
push:
@@ -26,9 +26,5 @@ jobs:
nix shell nixpkgs#netcat -c bash -c 'until nc -z localhost 3000; do sleep 1; done'
cd web-app
nix develop .#web --command bash -c 'npm install && npm run test'
- name: Cleanup
if: always()
run: |
pkill -f "nix run .#dev-vm" || echo "No dev-vm processes found"
pkill -f "nix run .#api" || echo "No api processes found"