-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 794 Bytes
/
Copy pathtest.yml
File metadata and controls
40 lines (33 loc) · 794 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
33
34
35
36
37
38
39
40
name: Tests
on:
push:
pull_request:
workflow_call:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium
- name: Run unit tests
run: npm test
- name: Run E2E tests
env:
PW_HEADLESS: "0"
PW_EXTENSION_SW_TIMEOUT_MS: "90000"
run: xvfb-run -a npm run test:e2e