Dummy commit #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 version | |
id: yarn-version | |
run: echo "::set-output name=ver::$(yarn -v)" | |
- 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-${{ steps.yarn-version.outputs.ver }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }} | |
# 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: "." |