mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
31 lines
594 B
YAML
31 lines
594 B
YAML
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: Setup dev vm
|
|
run: |
|
|
sudo mkdir -p /var/www/archtika-websites
|
|
sudo chown $USER:$(id -gn) /var/www/archtika-websites
|
|
nix run .#dev-vm
|
|
|
|
- name: Run playwright tests
|
|
run: |
|
|
cd web-app
|
|
nix develop .#web
|
|
npm install
|
|
npm run test
|