Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

v4.2.1 (#163)

v4.2.1 (#163) #224

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
jobs:
tests:
name: Unit tests
strategy:
matrix:
node: ['10.x', '12.x']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Get cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn dependencies
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn test