-
-
Notifications
You must be signed in to change notification settings - Fork 33
40 lines (36 loc) · 1.12 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
name: reviewdog
on:
pull_request:
permissions:
checks: write
contents: read
pull-requests: write
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
yarn install
- uses: reviewdog/action-setup@v1
- name: megalodon eslint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
yarn workspace megalodon lint | reviewdog -f=eslint -reporter=github-pr-review -fail-on-error=true
- name: example/typescript eslint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
yarn workspace example lint | reviewdog -f=eslint -reporter=github-pr-review -fail-on-error=true
- name: example/webpack eslint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
yarn workspace webpack lint | reviewdog -f=eslint -reporter=github-pr-review -fail-on-error=true