-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (35 loc) · 1.04 KB
/
e2e-ci.yml
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
name: 'Tests: E2E'
on: [pull_request]
env:
GITHUB_PR_NUMBER: ${{github.event.pull_request.number}}
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
jobs:
tests_e2e:
name: Run end-to-end tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node_version: [16, 18]
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
commandPrefix: 'xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" --'
- os: windows-latest
commandPrefix: ''
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: npm ci
- name: Lint
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: npm run lint
- name: Build
run: npm run package
- name: mocha tests
run: ${{ matrix.commandPrefix }} npm test
- name: playwright tests
run: ${{ matrix.commandPrefix }} npm run test:e2e