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