From 039985b1fe793da0193c4bf527e036b13deaf71c Mon Sep 17 00:00:00 2001 From: James Date: Tue, 24 Mar 2026 04:54:51 +0000 Subject: [PATCH] ci: split lint and format into separate jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Lint (oxlint) only runs when code changes are detected - Format (oxfmt) runs on all PRs including docs-only changes - Update path filter: pnpm-lock.yaml → bun.lock Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73b383fa3a..09b97a54a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,7 @@ jobs: - "packages/**" - "scripts/**" - "package.json" - - "pnpm-lock.yaml" - - "pnpm-workspace.yaml" + - "bun.lock" - "tsconfig*.json" - "Dockerfile*" @@ -46,8 +45,10 @@ jobs: - run: bun install --frozen-lockfile - run: bun run build - lint-and-format: - name: Lint & Format + lint: + name: Lint + needs: changes + if: needs.changes.outputs.code == 'true' runs-on: ubuntu-latest timeout-minutes: 5 steps: @@ -58,6 +59,18 @@ jobs: node-version: 22 - run: bun install --frozen-lockfile - run: bun run lint + + format: + name: Format + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: bun install --frozen-lockfile - run: bun run format:check typecheck: