nodejs.yml

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