キャッシュ方法の変更 #22
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: "next lintをかける" | |
on: | |
pull_request: | |
#paths: | |
# - "**/*.ts" | |
# - "**/*.tsx" | |
jobs: | |
nextlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "checkoutする" | |
uses: actions/checkout@v4 | |
- name: "corepackの有効化" | |
run: corepack enable | |
- name: "Node.jsのセットアップ" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: "reviewdogのインストール" | |
uses: reviewdog/action-setup@v1 | |
with: | |
reviewdog_version: latest | |
- name: "パッケージのインストール" | |
run: pnpm install | |
- name: "next lintの実行 with reviewdog" | |
run: | | |
pnpm run lint -f checkstyle | reviewdog -f checkstyle --name=nextlint -reporter=github-pr-review | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |