-
-
Notifications
You must be signed in to change notification settings - Fork 310
46 lines (43 loc) · 1.19 KB
/
pr-master-e2e.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
46
name: PR - e2e testing
on:
push:
branches:
- master
pull_request:
env:
NODE_VERSION: 18
# NODE_OPTIONS: --openssl-legacy-provider
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: restore lerna
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn --frozen-lockfile --network-timeout 1000000
- uses: browser-actions/setup-chrome@latest
- name: Build apps (with retries)
uses: nick-invision/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
command: yarn build:ci
- run: npx playwright install
- name: Run headless e2e test
uses: GabrielBB/xvfb-action@v1
with:
run: yarn playwright test --retries 2
env:
NODE_OPTIONS: --max_old_space_size=4096