-
Notifications
You must be signed in to change notification settings - Fork 337
56 lines (54 loc) · 1.23 KB
/
build.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
53
54
55
56
name: Build
on:
pull_request:
branches:
- master
- v1.0.X
- v1.1.X
push:
branches:
- master
- v1.0.X
- v1.1.X
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [
10,
12,
14,
]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install system dependencies
run: |
sudo apt -qq update
sudo apt install -y google-chrome-stable
- name: Install node dependencies
run: |
npm ci
- name: Check formatting
run: |
npx prettier -u -c '*.ts' '*.js' config src static tools
- name: Lint with eslint and stylelint
run: |
npm run lint
- name: Run build
run: |
npm run build
- name: Run integration tests
run: |
./tools/make-self-signed-cert.sh
npm run jest
npm run coverage
env:
WEBTHINGS_HOME: "${HOME}/.webthings/test"
NODE_TLS_REJECT_UNAUTHORIZED: 0
- name: Check dependencies
run: |
npm run dependencies-check