try 22.5.1 everywhere #140
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
HUSKY: 0 | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [16, 18, 20, 22.5.1] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
name: Node v${{ matrix.node }} (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Update npm | |
run: npm install -g npm@9 # npm 10 does not support node 16 | |
# new versions of python don't include distutils. setuptools provides it. | |
- name: Install setuptools | |
run: pip install setuptools | |
- name: Install dependencies and build | |
run: npm ci | |
- name: Test | |
run: npm test |