-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (49 loc) · 1.23 KB
/
pr-any.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
47
48
49
50
51
52
name: PR
on: [pull_request]
jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: 18.14
- name: Install dependencies
run: |
corepack enable
yarn install --immutable
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
- name: Lint
run: yarn lint
build-and-test:
name: Build and test e2e
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2-beta
with:
node-version: 18.14
- name: Install dependencies
run: |
corepack enable
yarn install --immutable
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
- name: Build
run: yarn build
# - name: Run headful puppeteer tests
# uses: mujo-code/puppeteer-headful@16.6.0
# with:
# args: yarn e2e
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: build
path: |
master-build.zip