Lint ワークフローを修正 #43
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: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node: [16, 18] | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@main | |
- name: Use Node.js ${{ matrix.node }}.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: Cache ~/.pnpm-store | |
uses: actions/cache@main | |
env: | |
cache-name: cache-pnpm-store | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ matrix.node }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-${{ matrix.node }}-build- | |
${{ runner.os }}- | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Lint | |
run: | | |
pnpm install | |
pnpm run lint |