Test base PR for #2953 (59b90d4adfce0f99191250dd08f54d40319e6d7f) #2586
Workflow file for this run
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
name: ESLint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main, '[0-9]+-[0-9]+-*'] | |
workflow_run: | |
workflows: ['Dependabot'] | |
types: | |
- completed | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
ref: | |
description: 'Checkout a different git ref instead of the SHA from the GitHub event.' | |
required: false | |
type: string | |
jobs: | |
eslint: | |
name: ESLint | |
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
check-latest: true | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install | |
- uses: CatChen/eslint-suggestion-action@v4 | |
with: | |
targets: 'src' | |
fail-check: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} |