megalodon/.github/workflows/reviewdog.yml
2022-12-01 21:13:06 +09:00

26 lines
579 B
YAML

name: reviewdog
on:
pull_request:
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: '18.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