name: Lint

on: [push, pull_request]

jobs:
  eslint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
        with:
          fetch-depth: 1
      - uses: actions/setup-node@v1
        with:
          node-version: 16
      - name: eslint
        uses: reviewdog/action-eslint@v1
        with:
          reporter: github-pr-review
