2828 steps :
2929 - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3030 - uses : ./.github/actions/setup-nix
31+ with :
32+ cache-profile : dev
3133 - run : nix flake check --print-build-logs
32- - run : nix develop --command just typecheck
34+ - run : nix flake check ./dev --print-build-logs
35+ - run : nix develop ./dev#ci --command just install
36+ - run : nix develop ./dev#ci --command just typecheck
3337
3438 test :
3539 needs : changes
@@ -47,21 +51,24 @@ jobs:
4751 ref : ${{ github.event.pull_request.head.sha || github.sha }}
4852 persist-credentials : false
4953 - uses : ./.github/actions/setup-nix
54+ with :
55+ cache-profile : dev
56+ - run : nix develop ./dev#ci --command just install
5057 - name : Create default Claude directories for tests
5158 run : |
5259 mkdir -p "$HOME/.claude/projects"
5360 mkdir -p "$HOME/.config/claude/projects"
5461 - name : Run test suite
5562 if : github.event_name != 'pull_request' && github.ref != format('refs/heads/{0}', github.event.repository.default_branch)
56- run : nix develop --command just test
63+ run : nix develop ./dev#ci --command just test
5764 - name : Run Vitest tests
5865 if : github.event_name == 'pull_request' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
59- run : nix develop --command just test-vitest
66+ run : nix develop ./dev#ci --command just test-vitest
6067 - name : Generate Rust coverage report
6168 if : github.event_name == 'pull_request' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
6269 run : |
6370 mkdir -p coverage
64- env -u CFLAGS -u CXXFLAGS nix develop --command cargo llvm-cov \
71+ env -u CFLAGS -u CXXFLAGS nix develop ./dev#ci --command cargo llvm-cov \
6572 --manifest-path rust/Cargo.toml \
6673 --workspace \
6774 --cobertura \
@@ -185,8 +192,9 @@ jobs:
185192 for archive in "$RUNNER_TEMP"/native-packages/*.tar; do
186193 tar -xf "$archive"
187194 done
195+ - run : nix develop ./dev#ci --command just install
188196 - id : publish
189- run : nix develop --command pnpm pkg-pr-new publish --pnpm --bin './apps/ccusage' './packages/ccusage-*'
197+ run : nix develop ./dev#ci --command pnpm pkg-pr-new publish --pnpm --bin './apps/ccusage' './packages/ccusage-*'
190198
191199 ccusage-preview-e2e :
192200 if : github.event_name == 'pull_request' && needs.changes.outputs.code-changed == 'true'
@@ -252,6 +260,8 @@ jobs:
252260
253261 - name : Setup Nix
254262 uses : ./.github/actions/setup-nix
263+ with :
264+ cache-profile : dev
255265
256266 - name : Resolve PR preview package URL
257267 env :
@@ -264,14 +274,15 @@ jobs:
264274
265275 - name : Generate large ccusage fixture
266276 run : |
267- nix develop --command pnpm exec bun apps/ccusage/scripts/generate-large-fixture.ts \
268- --output-dir "$RUNNER_TEMP/ccusage-large-fixture" \
269- --codex-output-dir "$RUNNER_TEMP/ccusage-large-codex-fixture" \
270- --size-mib 1024
277+ nix develop ./dev#ci --command just install
278+ nix develop ./dev#ci --command just generate-large-fixture \
279+ "$RUNNER_TEMP/ccusage-large-fixture" \
280+ "$RUNNER_TEMP/ccusage-large-codex-fixture" \
281+ 1024
271282
272283 - name : Compare fixture performance
273284 run : |
274- nix develop --command pnpm exec bun apps/ccusage/scripts/compare-pr-performance.ts \
285+ nix develop ./dev#ci --command pnpm exec bun apps/ccusage/scripts/compare-pr-performance.ts \
275286 --base-package-url "https://pkg.pr.new/${{ github.repository }}/ccusage@${{ github.event.pull_request.base.sha }}" \
276287 --base-sha "${{ github.event.pull_request.base.sha }}" \
277288 --head-dir . \
@@ -298,7 +309,7 @@ jobs:
298309 GITHUB_TOKEN : ${{ github.token }}
299310 GITHUB_REPOSITORY : ${{ github.repository }}
300311 PR_NUMBER : ${{ github.event.pull_request.number }}
301- run : nix develop --command pnpm exec bun .github/scripts/upsert-pr-comment.ts
312+ run : nix develop ./dev#ci --command pnpm exec bun .github/scripts/upsert-pr-comment.ts
302313
303314 ccusage-rust-perf-comment :
304315 name : ccusage rust perf comment
@@ -322,6 +333,8 @@ jobs:
322333
323334 - name : Setup Nix
324335 uses : ./.github/actions/setup-nix
336+ with :
337+ cache-profile : dev
325338
326339 - name : Resolve PR preview package URL
327340 env :
@@ -334,14 +347,15 @@ jobs:
334347
335348 - name : Generate large ccusage fixture
336349 run : |
337- nix develop --command pnpm exec bun apps/ccusage/scripts/generate-large-fixture.ts \
338- --output-dir "$RUNNER_TEMP/ccusage-large-fixture" \
339- --codex-output-dir "$RUNNER_TEMP/ccusage-large-codex-fixture" \
340- --size-mib 1024
350+ nix develop ./dev#ci --command just install
351+ nix develop ./dev#ci --command just generate-large-fixture \
352+ "$RUNNER_TEMP/ccusage-large-fixture" \
353+ "$RUNNER_TEMP/ccusage-large-codex-fixture" \
354+ 1024
341355
342356 - name : Compare Rust performance
343357 run : |
344- nix develop --command pnpm exec bun apps/ccusage/scripts/compare-pr-performance.ts \
358+ nix develop ./dev#ci --command pnpm exec bun apps/ccusage/scripts/compare-pr-performance.ts \
345359 --base-package-url "https://pkg.pr.new/${{ github.repository }}/ccusage@${{ github.event.pull_request.base.sha }}" \
346360 --base-sha "${{ github.event.pull_request.base.sha }}" \
347361 --head-dir . \
@@ -369,7 +383,7 @@ jobs:
369383 GITHUB_TOKEN : ${{ github.token }}
370384 GITHUB_REPOSITORY : ${{ github.repository }}
371385 PR_NUMBER : ${{ github.event.pull_request.number }}
372- run : nix develop --command pnpm exec bun .github/scripts/upsert-pr-comment.ts
386+ run : nix develop ./dev#ci --command pnpm exec bun .github/scripts/upsert-pr-comment.ts
373387
374388 action-timeline :
375389 needs :
0 commit comments