blob: 073877cd9230e19954c873fca2d8ce2b5b658c49 [file] [log] [blame]
name: WebUI Tests
on:
workflow_call:
push:
branches-ignore:
- "queue-main-*"
- "queue-dev-*"
paths:
- "webui/**"
pull_request:
paths:
- "webui/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: webui/package-lock.json
- name: Install dependencies
working-directory: ./webui
run: npm ci
- name: Install Playwright Chromium
working-directory: ./webui
run: npx playwright install chromium --with-deps
- name: Run tests
working-directory: ./webui
run: npm run test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: webui/playwright-report/
retention-days: 7