Skip to content

Merge pull request #733 from stefanvermaas/dependabot/npm_and_yarn/ro… #2383

Merge pull request #733 from stefanvermaas/dependabot/npm_and_yarn/ro…

Merge pull request #733 from stefanvermaas/dependabot/npm_and_yarn/ro… #2383

name: Test package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn
- run: yarn test
env:
CI: true