Skip to content

ci: add multiple LTS Node.js versions testing #46

ci: add multiple LTS Node.js versions testing

ci: add multiple LTS Node.js versions testing #46

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 22
- 20
- 18
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install nodejs
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Run tests
run: |
npm i
npm test