Skip to content

v2.0.0

v2.0.0 #1

Workflow file for this run

# This workflow will do a clean installation of node dependencies, build the source code and run tests across different node versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node: [18, 20, 21, 22]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Clean install
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm run test