1name: Node.js build and test
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8 workflow_dispatch:
9
10defaults:
11 run:
12 working-directory: webui
13
14jobs:
15 build:
16 runs-on: ubuntu-latest
17
18 strategy:
19 matrix:
20 node-version: [12.x, 14.x, 16.x]
21
22 steps:
23 - name: Setup Node.js ${{ matrix.node-version }}
24 uses: actions/setup-node@v1
25 with:
26 node-version: ${{ matrix.node-version }}
27
28 - name: Check out code
29 uses: actions/checkout@v2
30
31 - name: Install
32 run: make install
33
34 - name: Build
35 run: make build
36
37 - name: Test
38 run: make test