nix-community.nixvim/flake/dev/tests.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1 KiB
Nix
Raw Normal View History

{
lib,
self,
inputs,
helpers,
...
}:
{
perSystem =
2025-01-19 12:55:15 +00:00
{ pkgs, ... }:
{
checks = pkgs.callPackages ../../tests {
2025-01-19 12:55:15 +00:00
inherit helpers self;
};
};
# Output a build matrix for CI
flake.githubActions = inputs.nix-github-actions.lib.mkGithubMatrix {
checks = builtins.mapAttrs (
2025-05-25 21:44:27 +01:00
system: lib.filterAttrs (name: v: !lib.strings.hasPrefix "test-" name)
# lib.flip lib.pipe [
# lib.attrsToList
# # Group the "test-N" tests back into one drv
# # FIXME: drop the entire test-grouping system
# (builtins.groupBy ({ name, value }: if lib.strings.hasPrefix "test-" name then "test" else name))
# (builtins.mapAttrs (
# group: tests:
# let
# pkgs = inputs.nixpkgs.legacyPackages.${system};
# singleton = (builtins.head tests).value;
# joined = pkgs.linkFarm group (builtins.listToAttrs tests);
# in
# if builtins.length tests > 1 then joined else singleton
# ))
# ]
) self.checks;
};
}