chore(ci) Added job to check correct passing of variables

Append a test for the correctness of transfer and creation of environment variables in ci,
and added the required packages to run the remaining jobs in the terminal.
This commit is contained in:
Skryta Istota 2025-12-02 15:35:56 +01:00
parent d8e55a05b2
commit fb234b80bf
No known key found for this signature in database

View file

@ -1,5 +1,5 @@
{inputs, ...}: let {inputs, ...}: let
inherit (inputs) cilib; inherit (inputs) cilib pkgs;
in in
cilib.mkCI { cilib.mkCI {
config.soonix = { config.soonix = {
@ -58,9 +58,26 @@ in
}; };
}; };
pipelines."default" = { pipelines."default" = {
stages = ["test" "build" "deploy"]; stages = ["check" "test" "build" "deploy"];
variables = {
EXAMPLE = "empty";
CURL = toString pkgs.curl;
};
jobs = { jobs = {
"check" = {
stage = "check";
script = [
"set -euo pipefail"
"echo EXAMPLE=$EXAMPLE CURL=$CURL SAMPLE=$SAMPLE HELLO=$HELLO"
];
variables = {
SAMPLE = "working";
HELLO = toString pkgs.hello;
FF_SCRIPT_SECTIONS = "true";
};
};
"test" = { "test" = {
nix.deps = with pkgs; [coreutils nix];
stage = "test"; stage = "test";
script = [ script = [
"nix run .#tests -- --junit=junit.xml" "nix run .#tests -- --junit=junit.xml"
@ -73,6 +90,7 @@ in
}; };
"docs" = { "docs" = {
stage = "build"; stage = "build";
nix.deps = with pkgs; [coreutils nix];
script = [ script = [
# sh # sh
'' ''