開発環境のアップデート, 利用パッケージアップデート #111
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: Code Check | |
on: | |
push: | |
tags-ignore: | |
- "*" | |
branches: [main] | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
code-check: | |
name: Code Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".node-version" | |
- name: Set up pnpm | |
id: pnpm-setup | |
run: corepack enable | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --reporter=silent | |
- name: eslint | |
run: pnpm run lint | |
- name: prettier | |
run: pnpm run format | |
- name: typecheck | |
run: pnpm run typecheck | |
- name: testing | |
run: pnpm run test | |
- name: build pkgs | |
run: pnpm run build |