From 9be64bbc7f366a7095e819c088d26f953ac3fe69 Mon Sep 17 00:00:00 2001 From: Seiya Kojima <20368071+seiya-koji@users.noreply.github.com> Date: Mon, 13 Jul 2026 09:12:01 +0900 Subject: [PATCH] ci: split lint-and-format into separate jobs Split the lint-and-format CI job into lint, format, type-check, and test jobs so each check runs and reports independently. Coverage enforcement and Codecov upload were already in place. --- .github/workflows/ci.yml | 41 +++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12818ef..3a5cdbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [main] jobs: - lint-and-format: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 @@ -17,15 +17,42 @@ jobs: cache: 'npm' - run: npm ci + - run: npm run lint - - name: Lint - run: npm run lint + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v6 + with: + node-version: '22' + cache: 'npm' - - name: Format check - run: npm run format:check + - run: npm ci + - run: npm run format:check - - name: Type check - run: npm run compile + type-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v6 + with: + node-version: '22' + cache: 'npm' + + - run: npm ci + - run: npm run compile + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v6 + with: + node-version: '22' + cache: 'npm' + + - run: npm ci - name: Test with coverage run: npm run test:coverage