-
Notifications
You must be signed in to change notification settings - Fork 384
39 lines (34 loc) · 930 Bytes
/
test.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
name: Test
on: [
pull_request,
push
]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [10.x, 11.x, 12.x, 13.x, 14.x]
include:
- os: macos-latest
node: 12.x
- os: windows-latest
node: 12.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:server
- run: npm run lint:server
- run: npm run test:e2e
# test hb-service
- run: node dist/bin/hb-service.js -v
- if: runner.os == 'Linux'
run: sudo node dist/bin/hb-service.js install --user homebridge
- if: runner.os == 'macOS'
run: sudo node dist/bin/hb-service.js install
- if: runner.os == 'Windows'
run: node dist/bin/hb-service.js install