Skip to content

Add CI checks for Node package #1

Add CI checks for Node package

Add CI checks for Node package #1

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
permissions:
contents: read
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 16.x
- 18.x
- 20.x
- 22.x
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install --no-package-lock
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm test
- name: Verify package contents
run: npm pack --dry-run