Skip to content

Add Node.js v22 to CI matrix #24

Add Node.js v22 to CI matrix

Add Node.js v22 to CI matrix #24

Workflow file for this run

name: CI
on:
push:
workflow_dispatch:
jobs:
lint-test:
name: Lint & test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x', '22.x']
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'package.json'
- name: Install npm dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests
run: npm test -- --ci --coverage --runInBand
- name: Upload test reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: test/reports
- name: Upload test coverage
uses: actions/upload-artifact@v3
with:
name: test-coverage
path: test/coverage