Skip to content

test: Update CI node.js versions #88

test: Update CI node.js versions

test: Update CI node.js versions #88

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node: [18, 20, 22]
name: Node.js ${{ matrix.node }}
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- uses: actions/cache@v3.2.4
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test:pretty
- run: yarn test
- run: yarn test:types
- run: yarn test:build