Skip to content

update gh action test node versions #243

update gh action test node versions

update gh action test node versions #243

Workflow file for this run

name: unit-tests
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [18, 20, 21]
name: ${{ matrix.os }} Node ${{ matrix.node }} cache
env:
OS: ${{ matrix.os }}
NODE: ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache directory
id: yarn-cache
run: |
echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3.0.5
id: cache
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-
${{ runner.os }}-node-
- run: |
yarn install --frozen-lockfile
yarn run lint
yarn run test:types
yarn run test