-
Notifications
You must be signed in to change notification settings - Fork 100
32 lines (30 loc) · 964 Bytes
/
browser-test.yml
File metadata and controls
32 lines (30 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# docs https://playwright.dev/docs/ci-intro#setting-up-github-actions
name: Browser Tests
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test-browser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Install linux rollup optional dependencies
run: npm i @rollup/rollup-linux-x64-gnu -D
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Build
run: npm run build
- name: Test with browser bundle
timeout-minutes: 2
run: |
npm run test:browser