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:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["Playwright tests"]
|
workflows: ['Playwright tests']
|
||||||
types:
|
types: [completed]
|
||||||
- completed
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SERVER_USER: root
|
SERVER_USER: root
|
||||||
SERVER_IP: 128.140.75.240
|
SERVER_IP: 128.140.75.240
|
||||||
@@ -13,6 +11,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -26,9 +26,5 @@ jobs:
|
|||||||
nix shell nixpkgs#netcat -c bash -c 'until nc -z localhost 3000; do sleep 1; done'
|
nix shell nixpkgs#netcat -c bash -c 'until nc -z localhost 3000; do sleep 1; done'
|
||||||
cd web-app
|
cd web-app
|
||||||
nix develop .#web --command bash -c 'npm install && npm run test'
|
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 .#dev-vm" || echo "No dev-vm processes found"
|
||||||
pkill -f "nix run .#api" || echo "No api processes found"
|
pkill -f "nix run .#api" || echo "No api processes found"
|
||||||
|
|||||||
Reference in New Issue
Block a user