Skip to content

chore(deps): update node.js to v12.22.12 #598

chore(deps): update node.js to v12.22.12

chore(deps): update node.js to v12.22.12 #598

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.js
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.pnp.js') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn
- name: Lint project
run: yarn lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12, 14, 16]
steps:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.js
key: yarn-${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.pnp.js') }}
restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node }}
- name: Install dependencies
run: yarn
- name: Bootstrap project
run: yarn bootstrap
- name: Test project
run: yarn test