chore: add test and docs for handling nix store paths in global variables

This commit is contained in:
technofab 2025-12-02 15:09:27 +01:00
parent 96e6fe59bf
commit 1c9e7c77c5
No known key found for this signature in database
2 changed files with 33 additions and 0 deletions

View file

@ -163,6 +163,28 @@
};
}).finalConfig;
}
{
# it doesn't make much sense to have any nix store path in variables, but we ignore it for global variables
name = "ignore store paths in global variables";
expected = {
variables = {
HELLO = "world";
CURL = toString pkgs.curl;
};
};
actual =
(mkPipeline {
name = "test";
nixConfig.enable = true;
pipeline = {
variables = {
HELLO = "world";
CURL = toString pkgs.curl;
};
jobs = {};
};
}).finalConfig;
}
];
};
}