diff --git a/nix/linux/flake-module.nix b/nix/linux/flake-module.nix index 58d3876d..4b6d7d9e 100644 --- a/nix/linux/flake-module.nix +++ b/nix/linux/flake-module.nix @@ -133,7 +133,31 @@ in } ); - linux-nextest = build.craneLib.cargoNextest (build.individualCrateArgs // { doCheck = true; }); + # the Linux packages and the platform-neutral crates (layouts, scrolling, themes and the + # shared crates/*), whose tests ran in no check. Not `--workspace`: that unifies the + # features of komorebi-daemon and the crates it pulls in, and windows-future fails to build. + linux-nextest = build.craneLib.cargoNextest ( + build.individualCrateArgs + // { + doCheck = true; + cargoNextestExtraArgs = "--no-fail-fast"; + cargoExtraArgs = + "--locked ${build.packages} " + + lib.concatMapStringsSep " " (p: "-p ${p}") [ + "komorebi-layouts" + "komorebi-scrolling" + "komorebi-themes" + "komorebi-backend" + "komorebi-collections" + "komorebi-config" + "komorebi-core" + "komorebi-protocol" + "komorebi-settings" + "komorebi-transport" + "komorebic-core" + ]; + } + ); # The bridge is not Rust: tsc checks its types from its JSDoc comments, and node runs # its tests against a fake KWin. No package.json and no build step. diff --git a/nix/workspace-src.nix b/nix/workspace-src.nix index a1424241..ed0cebdc 100644 --- a/nix/workspace-src.nix +++ b/nix/workspace-src.nix @@ -126,7 +126,10 @@ let # the script komorebi loads into KWin and the JSON the tests and the daemon read (lib.hasSuffix ".js" rel || lib.hasSuffix ".json" rel) && !(lib.hasPrefix "docs/" rel || lib.hasPrefix "schemas/" rel) - || lib.hasPrefix "schemas/linux/" rel + # the schemas of every platform: a test of komorebi-config compares them + || lib.hasPrefix "schemas/" rel + # the macOS CLI pages that a test of komorebic-core compares with the commands + || lib.hasPrefix "docs/macos/cli/" rel || lib.hasPrefix "spikes/config-parity/" rel || builtins.elem rel [ # the example configuration and the sample key bindings that `komorebic quickstart` includes