🩹 update: @typescript-eslint/parserをimportする #56
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: Quality Check | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
workflow_dispatch: | |
env: | |
NODE_VERSION: 22.11.0 | |
PNPM_VERSION: 9.13.2 | |
jobs: | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and install dependencies | |
uses: ./.github/actions/install | |
with: | |
pnpm-version: ${{ env.PNPM_VERSION }} | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Run TypeScript type check | |
run: pnpm ci:typecheck | |
test: | |
runs-on: ubuntu-latest | |
needs: type-check | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and install dependencies | |
uses: ./.github/actions/install | |
with: | |
pnpm-version: ${{ env.PNPM_VERSION }} | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Run Vitest and coverage | |
run: pnpm ci:test | |
env: | |
CI: true | |
eslint: | |
runs-on: ubuntu-latest | |
needs: type-check | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and install dependencies | |
uses: ./.github/actions/install | |
with: | |
pnpm-version: ${{ env.PNPM_VERSION }} | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Run ESLint | |
run: pnpm ci:lint | |
prettier: | |
runs-on: ubuntu-latest | |
needs: type-check | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and install dependencies | |
uses: ./.github/actions/install | |
with: | |
pnpm-version: ${{ env.PNPM_VERSION }} | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Run Prettier | |
run: pnpm ci:format | |
build: | |
runs-on: ubuntu-latest | |
needs: [type-check, test, eslint, prettier] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and install dependencies | |
uses: ./.github/actions/install | |
with: | |
pnpm-version: ${{ env.PNPM_VERSION }} | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Run Build | |
run: pnpm build |