forked from activeadmin/activeadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 852 Bytes
/
eslint.yml
File metadata and controls
33 lines (30 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: ESLint
on:
pull_request:
env:
NODE_VERSION: ${{ vars.ESLINT_NODE_VERSION || '20.x' }}
jobs:
eslint:
name: Run eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
- uses: tj-actions/changed-files@v45
id: changed-files
with:
files: |
**.js
package*.json
yarn.lock
.github/workflows/eslint.yml
- uses: reviewdog/action-eslint@v1
if: steps.changed-files.outputs.any_changed == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
filter_mode: nofilter # added (default), diff_context, file, nofilter
fail_on_error: true
reporter: github-pr-check