Setup reviewdog in GitHub Actions
This commit is contained in:
parent
6b8d96d49d
commit
3a8b589dc0
25
.github/workflows/reviewdog.yml
vendored
Normal file
25
.github/workflows/reviewdog.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: reviewdog
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
eslint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '16.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
yarn install
|
||||
- uses: reviewdog/action-setup@v1
|
||||
- name: Run eslint
|
||||
env:
|
||||
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
yarn workspace megalodon lint | reviewdog -f=eslint -reporter=github-pr-review
|
Loading…
Reference in a new issue