Skip to content

fix: Fix CI

fix: Fix CI #300

Workflow file for this run

# This workflow will do a clean install of node dependencies, install dependencies
# and run ESLint + Prettier for style checking
name: Lint library
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
env:
working-directory: ./
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node v14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies via yarn
run: yarn install --frozen-lockfile
working-directory: ${{env.working-directory}}
- name: Run ESLint on all *.js*/*.ts* files
run: yarn eslint --ext .js,.jsx,.ts,.tsx .
working-directory: ${{env.working-directory}}