build: restructure nix checks like tabberwockey #1

Merged
jingus merged 1 commit from t3code/9ca4005b into main 2026-10-20 18:14:25 -05:00
Owner

Reworks the flake checks to follow the conventions used in jingus/tabberwockey (nix-modules/checks/default.nix):

  • Consolidate nix-modules/tests/{lint,unit,e2e}.nix into a single nix-modules/checks/default.nix
  • Run checks against filtered sources instead of raw `` paths:
    • codeSrc (extension + tests) via lib.cleanSourceWith
    • nixSrc (.nix files + nix-modules)
  • Add a nixfmt check (nixfmt --check over all nix files) — new coverage
  • Convert the e2e check to a proper stdenv.mkDerivation with doCheck, phase hooks, and src = codeSrc instead of runCommand + `` string interpolation
  • Guard against mis-filtered sources (test -d tests etc.) like tabberwockey does
  • Drop x86_64-darwin from systems (dropped in nixpkgs 26.11), matching tabberwockey

nix flake check passes locally: package, lint, nixfmt, unit-tests, and e2e all build.

Reworks the flake checks to follow the conventions used in `jingus/tabberwockey` (`nix-modules/checks/default.nix`): - Consolidate `nix-modules/tests/{lint,unit,e2e}.nix` into a single `nix-modules/checks/default.nix` - Run checks against filtered sources instead of raw `` paths: - `codeSrc` (extension + tests) via `lib.cleanSourceWith` - `nixSrc` (`.nix` files + nix-modules) - Add a `nixfmt` check (`nixfmt --check` over all nix files) — new coverage - Convert the e2e check to a proper `stdenv.mkDerivation` with `doCheck`, phase hooks, and `src = codeSrc` instead of `runCommand` + `` string interpolation - Guard against mis-filtered sources (`test -d tests` etc.) like tabberwockey does - Drop `x86_64-darwin` from `systems` (dropped in nixpkgs 26.11), matching tabberwockey `nix flake check` passes locally: package, lint, nixfmt, unit-tests, and e2e all build.
build: restructure nix checks like tabberwockey
Some checks failed
ci / check (push) Failing after 1m32s
ci / check (pull_request) Successful in 1m34s
b3d1ddc86f
jingus merged commit e85415b1fb into main 2026-10-20 18:14:25 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jingus/sourcerer!1
No description provided.