Fix for tvOS #299
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
# 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: Cache node modules | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies via npm | |
run: npm ci | |
working-directory: ${{env.working-directory}} | |
- name: Run ESLint on all *.js*/*.ts* files | |
run: npx eslint --ext .js,.jsx,.ts,.tsx . | |
working-directory: ${{env.working-directory}} |