blob: 1964cb2fb5d55cb7a24f99913656f17acc8d6d60 [file] [log] [blame]
Sean McCulloughe8d6b802025-04-21 19:02:05 -07001name: WebUI Tests
2on:
3 workflow_call:
4 push:
5 branches-ignore:
6 - "queue-main-**"
7 paths:
8 - 'loop/webui/**'
9 pull_request:
10 paths:
11 - 'loop/webui/**'
12
13jobs:
14 test:
15 runs-on: ubuntu-latest
16 steps:
17 - uses: actions/checkout@v4
18
19 - name: Setup Node.js
20 uses: actions/setup-node@v4
21 with:
22 node-version: '20'
23 cache: 'npm'
24 cache-dependency-path: loop/webui/package-lock.json
25
26 - name: Install dependencies
27 working-directory: ./loop/webui
28 run: npm ci
29
Philip Zeyliger4f50a682025-04-23 19:34:55 -070030 - name: Install Playwright Chromium
Sean McCulloughe8d6b802025-04-21 19:02:05 -070031 working-directory: ./loop/webui
Philip Zeyliger4f50a682025-04-23 19:34:55 -070032 run: npx playwright install chromium --with-deps
Sean McCulloughe8d6b802025-04-21 19:02:05 -070033
34 - name: Run tests
35 working-directory: ./loop/webui
36 run: npm run test
37
38 - name: Upload test results
39 if: always()
40 uses: actions/upload-artifact@v4
41 with:
42 name: playwright-report
43 path: loop/webui/playwright-report/
44 retention-days: 7