Setup reviewdog in GitHub Actions

This commit is contained in:
AkiraFukushima 2022-07-28 00:19:59 +09:00
parent 6b8d96d49d
commit 3a8b589dc0
No known key found for this signature in database
GPG key ID: B6E51BAC4DE1A957

25
.github/workflows/reviewdog.yml vendored Normal file
View 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