From 590ad68513c2cbd5b37aa60e969557c20b16528d Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 27 Jul 2023 12:57:43 +0100 Subject: [PATCH] actions: add eslint reviewdog --- .github/workflows/reviewdog.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/reviewdog.yml diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml new file mode 100644 index 00000000..e10c0ea3 --- /dev/null +++ b/.github/workflows/reviewdog.yml @@ -0,0 +1,25 @@ +name: reviewdog +on: [pull_request] +jobs: + eslint: + name: runner / eslint + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@v3 + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: latest + - name: Setup Node.js + uses: actions/setup-node@v3 + 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 ."