name: Lint on: push: branches: [master] pull_request: workflow_dispatch: permissions: contents: read jobs: lint: name: Lint # Skip CI only for the automated release PR: opened by github-actions[bot], # from this same repo, on a release/* branch (the Create Release PR workflow # posts the required checks as passing for it). Keyed on the PR author, not the # branch name, so a "release/…" branch can't be used to bypass required checks. if: >- ${{ !(github.event_name == 'pull_request' && github.event.pull_request.user.login == 'github-actions[bot]' && github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'release/')) }} runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 with: node-version: 14 - uses: actions/cache@f4b3439a656ba812b8cb417d2d49f9c810103092 # v3.4.0 with: path: | node_modules packages/*/node_modules packages/core/.local-chromium key: > ${{ runner.os }}/node-14/ ${{ hashFiles('.github/.cache-key') }}/ ${{ hashFiles('**/yarn.lock') }} restore-keys: > ${{ runner.os }}/node-14/ ${{ hashFiles('.github/.cache-key') }}/ - run: yarn - run: yarn lint