ci: type-check vm test scripts without building the vms
Adds checks.<system>.vm-test-typecheck-<name> for hive-squid, swarm-archive, agent-ephemeral-rootfs, full-setup and wg-hive: ty and ruff F over nixpkgs' test-script prelude, the machine hints from the node names, and the script text. Node configs are never evaluated. vm-test-typecheck-control passes only when ty rejects a known type error.
This commit is contained in:
parent
712dcf2b25
commit
32f5b74ba4
1 changed files with 156 additions and 2 deletions
|
|
@ -573,3 +573,10 @@ in
|
|||
touch "$out"
|
||||
'';
|
||||
}
|
||||
// import ./vm-test-typecheck.nix {
|
||||
inherit pkgs;
|
||||
vmTests = import ./vm-tests.nix {
|
||||
inherit pkgs self;
|
||||
hivePriv = self.packages.${system}.hive-priv;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue