mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 10:10:06 +01:00
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:
parent
d8e55a05b2
commit
fb234b80bf
1 changed files with 20 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{inputs, ...}: let
|
||||
inherit (inputs) cilib;
|
||||
inherit (inputs) cilib pkgs;
|
||||
in
|
||||
cilib.mkCI {
|
||||
config.soonix = {
|
||||
|
|
@ -58,9 +58,26 @@ in
|
|||
};
|
||||
};
|
||||
pipelines."default" = {
|
||||
stages = ["test" "build" "deploy"];
|
||||
stages = ["check" "test" "build" "deploy"];
|
||||
variables = {
|
||||
EXAMPLE = "empty";
|
||||
CURL = toString pkgs.curl;
|
||||
};
|
||||
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" = {
|
||||
nix.deps = with pkgs; [coreutils nix];
|
||||
stage = "test";
|
||||
script = [
|
||||
"nix run .#tests -- --junit=junit.xml"
|
||||
|
|
@ -73,6 +90,7 @@ in
|
|||
};
|
||||
"docs" = {
|
||||
stage = "build";
|
||||
nix.deps = with pkgs; [coreutils nix];
|
||||
script = [
|
||||
# sh
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue