Skip to content

ci: test and publish on node 22 #170

ci: test and publish on node 22

ci: test and publish on node 22 #170

Workflow file for this run

name: run-checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# Include all major maintenance + active LTS + current Node.js versions.
# https://github.com/nodejs/Release#release-schedule
node: [18, 20, 22]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js 22
uses: actions/setup-node@v3
with:
# Always build using the same Node.js version, to ensure consistent
# results from scripts/iu-mappings.js.
# This version should be the same as the one used in the
# publish-on-tag workflow.
node-version: 22
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Test
run: npm test
node-6-compat:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js 6
uses: actions/setup-node@v3
with:
node-version: 6
- name: Install dependencies
run: npm install
- name: Install mocha 6
run: npm install mocha@6 -D --save
- name: Test
run: npm run test-node6