Skip to content

Commit

Permalink
tests: also run tests on stable
Browse files Browse the repository at this point in the history
  • Loading branch information
NyCodeGHG committed Feb 11, 2025
1 parent 2f16754 commit b103724
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
19 changes: 18 additions & 1 deletion tests/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 23 additions & 8 deletions tests/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
flake-parts.url = "github:hercules-ci/flake-parts";

nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
};

outputs = inputs:
Expand All @@ -13,13 +14,27 @@
"x86_64-linux"
"aarch64-linux"
];
perSystem = { pkgs, ... }:
{
checks = {
default = pkgs.nixosTest (import ./basic.nix pkgs);
firstboot = pkgs.nixosTest (import ./firstboot.nix pkgs);
verity-image = pkgs.nixosTest (import ./appliance-image-verity.nix pkgs);
};
perSystem =
{
pkgs,
lib,
system,
...
}:
let
checksForPkgs = pkgs: {
default = pkgs.nixosTest (import ./basic.nix pkgs);
firstboot = pkgs.nixosTest (import ./firstboot.nix pkgs);
verity-image = pkgs.nixosTest (import ./appliance-image-verity.nix pkgs);
};
};
stableChecks = (
lib.mapAttrs' (n: lib.nameValuePair "${n}-stable") (
checksForPkgs inputs.nixpkgs-stable.legacyPackages.${system}
)
);
in
{
checks = checksForPkgs pkgs // stableChecks;
};
};
}

0 comments on commit b103724

Please sign in to comment.