Skip to content

refactor: upgrade to Node.js 20 ESM + TypeScript with security chapter #1

refactor: upgrade to Node.js 20 ESM + TypeScript with security chapter

refactor: upgrade to Node.js 20 ESM + TypeScript with security chapter #1

Workflow file for this run

name: CI
on:
push:
branches: [main, refactor]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x', '22.x']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run typecheck
- run: npm run build
- name: Run tests with Node.js native test runner
run: node --test dist/tests/**/*.test.js