Skip to content

Start using Reviewdog to automatically comment on PRs #13

Start using Reviewdog to automatically comment on PRs

Start using Reviewdog to automatically comment on PRs #13

Workflow file for this run

name: reviewdog
on: [pull_request]
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: ''
- run: corepack enable
- run: yarn config set nodeLinker node-modules
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Cache yarn cache
uses: actions/cache@v3
id: cache-yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# FIXME: Remove the two lines below whenever possible
- run: yarn config set enableImmutableInstalls false
- run: yarn remove @kausal/themes-private
- run: yarn install
- uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
eslint_flags: "."