Add testing action

This commit is contained in:
thiloho
2024-09-01 17:12:38 +02:00
parent 49c5b2a541
commit b996084386
2 changed files with 27 additions and 3 deletions

23
.github/workflows/playwright.yml vendored Normal file
View 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