mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 02:41:35 +01:00
Move cleanup into previous step in testing action
This commit is contained in:
9
.github/workflows/demo-server-deploy.yml
vendored
9
.github/workflows/demo-server-deploy.yml
vendored
@@ -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
|
||||
|
||||
|
||||
6
.github/workflows/playwright.yml
vendored
6
.github/workflows/playwright.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user