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 example/ | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
env: | |
working-directory: ./example | |
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('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies via yarn | |
# Can't use npm because of the softlink to the library (../) | |
run: yarn install --frozen-lockfile | |
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}} |