-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (30 loc) · 920 Bytes
/
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
name: "Tests: E2E"
on: [pull_request]
env:
GITHUB_PR_NUMBER: ${{github.event.pull_request.number}}
jobs:
tests_e2e:
name: Run end-to-end tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node_version: [18, 20]
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 && cd example-project && npm ci
- name: Lint
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: npm run lint
- name: e2e tests
run: ${{ matrix.commandPrefix }} npm test