-
-
Notifications
You must be signed in to change notification settings - Fork 52
48 lines (45 loc) · 962 Bytes
/
build-js.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
name: Build JavaScript
on:
push:
paths-ignore:
- 'README.md'
- 'RELEASE.md'
- 'ruby/**'
branches:
- master
pull_request:
paths-ignore:
- 'README.md'
- 'RELEASE.md'
- 'ruby/**'
branches:
- '*'
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
node-version:
- 16
- 18
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# libgbm-dev is required by Puppeteer 3+
- name: Install system dependencies
run: |
sudo apt-get install -y libgbm-dev
if: ${{ runner.os == 'Linux' }}
- name: Install dependencies
run: |
npm ci
- name: Lint and test
run: |
npm run lint
npm t