Skip to content

ci: build and test node 22 lts (#543) #380

ci: build and test node 22 lts (#543)

ci: build and test node 22 lts (#543) #380

Workflow file for this run

name: test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# waiting on: https://github.com/actions/setup-node/issues/531
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
- name: Install deps, build, then clear deps
run: |
yarn install --immutable
yarn build
rm -rf node_modules
- name: Test on Node 22
run: |
node -v
node bin/test.js
# Not using a matrix here since it's simpler
# to just duplicate it and not spawn new instances
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Test on Node 20
run: |
node -v
node bin/test.js
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Test on Node 18
run: |
node -v
node bin/test.js