mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Add testing action
This commit is contained in:
7
.github/workflows/demo-server-deploy.yml
vendored
7
.github/workflows/demo-server-deploy.yml
vendored
@@ -1,9 +1,10 @@
|
||||
name: "Deploy app to demo server (demo.archtika.com)"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_run:
|
||||
workflows: ["Playwright tests"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
env:
|
||||
SERVER_USER: root
|
||||
|
||||
23
.github/workflows/playwright.yml
vendored
Normal file
23
.github/workflows/playwright.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: "Playwright tests"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Enter Nix development environment
|
||||
run: nix develop .#web
|
||||
|
||||
- name: Run playwright tests
|
||||
run: npm run test
|
||||
Reference in New Issue
Block a user