Skip to content

Commit 039985b

Browse files
jrusso1020claude
andcommitted
ci: split lint and format into separate jobs
- 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) <noreply@anthropic.com>
1 parent 065de44 commit 039985b

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
- "packages/**"
2727
- "scripts/**"
2828
- "package.json"
29-
- "pnpm-lock.yaml"
30-
- "pnpm-workspace.yaml"
29+
- "bun.lock"
3130
- "tsconfig*.json"
3231
- "Dockerfile*"
3332
@@ -46,8 +45,10 @@ jobs:
4645
- run: bun install --frozen-lockfile
4746
- run: bun run build
4847

49-
lint-and-format:
50-
name: Lint & Format
48+
lint:
49+
name: Lint
50+
needs: changes
51+
if: needs.changes.outputs.code == 'true'
5152
runs-on: ubuntu-latest
5253
timeout-minutes: 5
5354
steps:
@@ -58,6 +59,18 @@ jobs:
5859
node-version: 22
5960
- run: bun install --frozen-lockfile
6061
- run: bun run lint
62+
63+
format:
64+
name: Format
65+
runs-on: ubuntu-latest
66+
timeout-minutes: 5
67+
steps:
68+
- uses: actions/checkout@v4
69+
- uses: oven-sh/setup-bun@v2
70+
- uses: actions/setup-node@v4
71+
with:
72+
node-version: 22
73+
- run: bun install --frozen-lockfile
6174
- run: bun run format:check
6275

6376
typecheck:

0 commit comments

Comments
 (0)