test on different node versions

This commit is contained in:
mistval 2023-03-13 20:09:41 -04:00
parent 0173de3f6d
commit faf73e49d8

@ -6,12 +6,16 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 18.x, 20.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js 18.x - name: Use Node.js 18.x
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
node-version: 18.x node-version: ${{ matrix.node-version }}
- run: npm ci - run: npm ci
- run: npm run lint - run: npm run lint
- run: npm run coverage - run: npm run coverage