biome を使ってフォーマット #7
Workflow file for this run
This file contains hidden or 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: Check | |
| on: pull_request | |
| jobs: | |
| build-type-check: | |
| name: Build and Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| cache: npm | |
| - run: npm ci | |
| - uses: actions/cache@v3 | |
| with: | |
| key: ${{ runner.os }}-gatsby-build-${{ github.run_id }} | |
| path: | | |
| .cache | |
| public | |
| restore-keys: ${{ runner.os }}-gatsby-build- | |
| - run: npm run build | |
| - run: npm run type-check | |
| style: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| # because npm install is slow | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install --frozen-lockfile | |
| - run: bun run lint | |
| # skipping content because prettier can't format MDX | |
| - run: bunx prettier src --check |