-
-
Notifications
You must be signed in to change notification settings - Fork 82
44 lines (38 loc) · 1.07 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
name: reviewdog
on:
pull_request:
permissions:
pull-requests: write
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: |
yarn install
- uses: reviewdog/action-setup@v1
- name: Run eslint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
yarn run lint:eslint | reviewdog -f=eslint -reporter=github-pr-review -fail-on-error=true
stylelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: |
yarn install
- uses: reviewdog/action-setup@v1
- name: Run stylelint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
yarn run lint:stylelint --no-color | reviewdog -f=stylelint -reporter=github-pr-review -level=error -filter-mode=nofilter -fail-on-error=false