-
Notifications
You must be signed in to change notification settings - Fork 89
48 lines (43 loc) · 995 Bytes
/
nodejs.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: Node CI
on:
- push
- pull_request
jobs:
build:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [15.x, 16.x, 17.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Update npm
run: |
npm i -g npm@^7.x
- name: Install npm dependencies
run: |
npm ci
node node_modules/puppeteer/install.js
env:
CI: true
- name: lint code
run: npm run lint
env:
CI: true
- name: compile project
run: npm run build
env:
CI: true
- name: run unit tests
run: xvfb-run --auto-servernum npm run test:unit
env:
CI: true
- name: run smoke tests
run: xvfb-run --auto-servernum npm run test:smoke
env:
CI: true