-
Notifications
You must be signed in to change notification settings - Fork 71
39 lines (33 loc) · 996 Bytes
/
build.yaml
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: Node Build
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
node_version: [16]
os: [ubuntu-latest]
plugin_dir: [accessory-example-typescript, bridged-camera-example-typescript, dynamic-platform-example-typescript, independent-platform-example-typescript, static-platform-example-typescript]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: ${{ matrix.plugin_dir }}
- name: install
run: npm ci
working-directory: ${{ matrix.plugin_dir }}
env:
CI: true
- name: build
run: npm run build --if-present
working-directory: ${{ matrix.plugin_dir }}
env:
CI: true