-
Notifications
You must be signed in to change notification settings - Fork 384
49 lines (43 loc) · 1.13 KB
/
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
40
41
42
43
44
45
46
47
48
49
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
# remove dev deps
- run: npm clean-install --production
# 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
sleep 15
- if: runner.os == 'macOS'
run: |
sudo node dist/bin/hb-service.js install
sleep 15
- if: runner.os == 'Windows'
run: |
node dist/bin/hb-service.js install
Start-Sleep -s 15
- run: node dist/bin/hb-service.js status --port 8581