Test base PR for #2843 (66059b45c603048a7d3cf37f5d01c79545ac5860) #2418
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_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 | |
with: | |
ref: ${{ inputs.ref }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
check-latest: true | |
- name: Install dependencies | |
run: yarn install | |
- uses: CatChen/eslint-suggestion-action@v4 | |
with: | |
targets: 'src' | |
fail-check: ${{ github.event_name == 'workflow_call' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }} |