-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1012 Bytes
/
e2e-test.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
39
40
41
42
43
44
45
name: End To End Tests
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
workflow_dispatch:
jobs:
run-e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '18.x'
- name: Cache Dependencies
uses: actions/cache@v2
id: npm-cache
with:
path: node_modules
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install Dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: |
npm i
env:
CI: true
- name: Setup Puppeteer Chrome
uses: MauFournier/[email protected]
- name: Run end to end tests
run: |
xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' npm run test-e2e
env:
CI: true