10000 Add workflow file to build all plugins (#15) · homebridge/homebridge-examples@0f3654f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f3654f

Browse files
Add workflow file to build all plugins (#15)
1 parent 17e0db1 commit 0f3654f

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Node Build
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
node_version: [16]
16+
os: [ubuntu-latest]
17+
plugin_dir: [accessory-example-typescript, bridged-camera-example-typescript, dynamic-platform-example-typescript, independent-platform-example-typescript, static-platform-example-typescript]
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node_version }}
26+
registry-url: 'https://registry.npmjs.org'
27+
cache: 'npm'
28+
cache-dependency-path: ${{ matrix.plugin_dir }}
29+
30+
- name: install
31+
run: npm ci
32+
working-directory: ${{ matrix.plugin_dir }}
33+
env:
34+
CI: true
35+
- name: build
36+
run: npm run build --if-present
37+
working-directory: ${{ matrix.plugin_dir }}
38+
env:
39+
CI: true

0 commit comments

Comments
 (0)
0