wip to continue working on another machine #236
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |