Skip to content

ci: run tests on node 22 and update setup action #7

ci: run tests on node 22 and update setup action

ci: run tests on node 22 and update setup action #7

name: tests
on: [push]
jobs:
test-nodejs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["16.x", "18.x", "20.x", "22.x"]
steps:
- uses: actions/checkout@v4
- name: Using Node.js ${{matrix.node-version}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
cache: yarn
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn test