mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
ci: filter out test-N checks for now
This commit is contained in:
parent
f94d952820
commit
9863e247a5
1 changed files with 16 additions and 16 deletions
|
@ -17,22 +17,22 @@
|
||||||
# Output a build matrix for CI
|
# Output a build matrix for CI
|
||||||
flake.githubActions = inputs.nix-github-actions.lib.mkGithubMatrix {
|
flake.githubActions = inputs.nix-github-actions.lib.mkGithubMatrix {
|
||||||
checks = builtins.mapAttrs (
|
checks = builtins.mapAttrs (
|
||||||
system:
|
system: lib.filterAttrs (name: v: !lib.strings.hasPrefix "test-" name)
|
||||||
lib.flip lib.pipe [
|
# lib.flip lib.pipe [
|
||||||
lib.attrsToList
|
# lib.attrsToList
|
||||||
# Group the "test-N" tests back into one drv
|
# # Group the "test-N" tests back into one drv
|
||||||
# FIXME: drop the entire test-grouping system
|
# # FIXME: drop the entire test-grouping system
|
||||||
(builtins.groupBy ({ name, value }: if lib.strings.hasPrefix "test-" name then "test" else name))
|
# (builtins.groupBy ({ name, value }: if lib.strings.hasPrefix "test-" name then "test" else name))
|
||||||
(builtins.mapAttrs (
|
# (builtins.mapAttrs (
|
||||||
group: tests:
|
# group: tests:
|
||||||
let
|
# let
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
# pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
singleton = (builtins.head tests).value;
|
# singleton = (builtins.head tests).value;
|
||||||
joined = pkgs.linkFarm group (builtins.listToAttrs tests);
|
# joined = pkgs.linkFarm group (builtins.listToAttrs tests);
|
||||||
in
|
# in
|
||||||
if builtins.length tests > 1 then joined else singleton
|
# if builtins.length tests > 1 then joined else singleton
|
||||||
))
|
# ))
|
||||||
]
|
# ]
|
||||||
) self.checks;
|
) self.checks;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue