forked from WebThingsIO/zwave-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-action-old
41 lines (39 loc) · 903 Bytes
/
build-action-old
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
name: Build
on:
pull_request:
branches:
- master
push:
branches:
- master
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 libudev-dev
git clone -b moziot --single-branch --depth=1 https://github.com/WebThingsIO/open-zwave
make -C open-zwave
sudo make -C open-zwave install
- name: Install node dependencies
run: |
npm install
- name: Lint with eslint
run: |
npm run lint
- name: Run unit tests
run: |
npm run jest