Skip to content

test: test with Node.js v22 #125

test: test with Node.js v22

test: test with Node.js v22 #125

Workflow file for this run

## Test with multiple node versions.
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: utils/run-install.sh
- run: utils/run-lint.sh
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14, 16, 18, 20, 22]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Update npm to at least v7 for workspaces support
if: ${{ matrix.node-version < 16 }} # node@16 comes with npm@8, node@14 with npm@6
run: npm install -g npm@7 # npm@7 supports node >=10
- name: Install dependencies
run: utils/run-install.sh
- name: Test Node.js v${{ matrix.node-version }}
run: utils/run-test.sh