name: Lint on: pull_request: push: branches: [master] jobs: eslint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/cache@v2 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - name: Install modules run: yarn install working-directory: js - name: Run ESLint run: yarn lint:eslint working-directory: js