Skip to content

Update supported versions of nodejs in tests #456

Update supported versions of nodejs in tests

Update supported versions of nodejs in tests #456

Workflow file for this run

name: Unit tests
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
# We officially support LTS versions of nodejs still inside
# their security support window
# https://endoflife.date/nodejs
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci
- name: Verify lint
run: npm run lint
- name: Run unit tests
run: npm test