Skip to content

Commit 6157464

Browse files
committed
ci(dev): run flake checks through just
Add a just flake-check recipe that runs both the root package flake and the development tooling flake. Use it from lint-check so the workflow has one explicit check command while preserving the split flake responsibilities. Make just typecheck depend on the frozen pnpm install so local and CI typechecks both install workspace dependencies first.
1 parent 537f76b commit 6157464

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ jobs:
3030
- uses: ./.github/actions/setup-nix
3131
with:
3232
cache-profile: dev
33-
- run: nix flake check --print-build-logs
34-
- run: nix flake check ./dev --print-build-logs
35-
- run: nix develop ./dev#ci --command just install
33+
- run: nix develop ./dev#ci --command just flake-check
3634
- run: nix develop ./dev#ci --command just typecheck
3735

3836
test:

‎justfile‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ build: ccusage::build docs::build
2626
install:
2727
pnpm install --frozen-lockfile
2828

29-
# Type-check every workspace package
30-
typecheck: ccusage::typecheck docs::typecheck
29+
# Install dependencies, then type-check every workspace package
30+
typecheck: install ccusage::typecheck docs::typecheck
3131

3232
# Run the full test suite (Rust workspace + Vitest) in parallel
3333
[parallel]
@@ -45,11 +45,14 @@ generate-large-fixture output_dir codex_output_dir size_mib="1024":
4545
fmt:
4646
nix develop ./dev#ci --command treefmt
4747

48-
# Run package typechecks and every flake check (treefmt, oxlint, clippy, schema drift, gitleaks, build)
49-
check: typecheck
48+
# Run root package checks and development tooling checks
49+
flake-check:
5050
nix flake check
5151
nix flake check ./dev
5252

53+
# Run package typechecks and every flake check (treefmt, oxlint, clippy, schema drift, gitleaks, build)
54+
check: typecheck flake-check
55+
5356
# Regenerate apps/ccusage/config-schema.json from the Rust source
5457
schema:
5558
nix run ./dev#generate-schema

0 commit comments

Comments
 (0)