forked from google/material-design-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 946 Bytes
/
reviewdog.yml
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: reviewdog
on: [pull_request]
jobs:
reviewdog:
name: runner / reviewdog
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
**/*.{js,ts}
files_ignore: |
third_party/**
- uses: actions/setup-node@v4
with:
node-version: 11
cache: 'npm'
- run: npm install
- uses: reviewdog/action-eslint@v1
if: steps.changed-files.outputs.any_changed == 'true'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.REVIEW_DOG_PAT }}
with:
github_token: ${{ secrets.REVIEW_DOG_PAT }}
reporter: github-pr-review
level: error
eslint_flags: ${{ steps.changed-files.outputs.all_changed_files }}