Skip to content

node-version: ['18.x', '20.x', '22.x', 'latest'] #4

node-version: ['18.x', '20.x', '22.x', 'latest']

node-version: ['18.x', '20.x', '22.x', 'latest'] #4

Workflow file for this run

# https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-nodejs
name: Node.js CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
node-version: ['18.x', '20.x', '22.x', 'latest']
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci || npm install
- run: npm run build --if-present
- run: npm audit || true
- run: npm run lint
- run: npm test