refactor(ci-pipeline): rename format job to eslint and separate prettier checks

This commit is contained in:
Shintaro Jokagi
2025-05-28 13:47:05 +12:00
parent 7fafa6bc69
commit 6137c66370

View File

@@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: npm ci
format:
eslint:
runs-on: ubuntu-latest
needs: setup
steps:
@@ -40,7 +40,24 @@ jobs:
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Run Biome check
run: npm run lint && npm run format:check
run: npm run lint
prettier:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Restore node_modules from cache
uses: actions/cache@v4
with:
path: |
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Run Prettier check
run: npm run format:check
vitest:
runs-on: ubuntu-latest