2023-07-27 11:57:43 +00:00
|
|
|
name: reviewdog
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
|
|
eslint:
|
|
|
|
name: runner / eslint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
steps:
|
2023-09-04 15:15:56 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-27 11:57:43 +00:00
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
- name: Setup Node.js
|
2023-10-23 16:26:43 +00:00
|
|
|
uses: actions/setup-node@v4
|
2023-07-27 11:57:43 +00:00
|
|
|
with:
|
|
|
|
cache: "pnpm"
|
|
|
|
- run: pnpm install
|
|
|
|
- uses: reviewdog/action-eslint@v1
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
reporter: github-pr-review
|
|
|
|
eslint_flags: "--ignore-path .gitignore --ext .js,.vue ."
|