1# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
4name: Node.js CI
5
6on: [push, pull_request]
7
8jobs:
9 build:
10
11 runs-on: ubuntu-latest
12
13 strategy:
14 matrix:
15 node-version: [ 12.20.0, latest ]
16
17 steps:
18 - uses: actions/checkout@v3
19 - name: Use Node.js ${{ matrix.node-version }}
20 uses: actions/setup-node@v3
21 with:
22 node-version: ${{ matrix.node-version }}
23 - run: npm test all
24 - run: npm run lint
25 if: matrix.node-version == 'latest'