Add GitHub Actions workflow for running webui tests

This commit is contained in:
2025-07-26 19:24:01 +02:00
parent 4334b40fa9
commit 6d7274ce31

32
.github/workflows/webui_test.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Tests
on:
push:
branches: [ main ]
paths:
- "webui/src/**"
- "webui/package.json"
- "webui/package-lock.json"
- ".github/workflows/webui_test.yaml"
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: "./webui/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test:run