Skip to content

wip to continue working on another machine #236

wip to continue working on another machine

wip to continue working on another machine #236

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: [12, 14, 16]
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