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,11 +1,9 @@
name: "Deploy app to demo server (demo.archtika.com)"
name: Deploy app to demo server (demo.archtika.com)
on:
workflow_run:
workflows: ["Playwright tests"]
types:
- completed
workflows: ['Playwright tests']
types: [completed]
env:
SERVER_USER: root
SERVER_IP: 128.140.75.240
@@ -13,6 +11,7 @@ env:
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4

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"