ci: add nixtest job

This commit is contained in:
technofab 2025-05-10 20:00:30 +02:00
parent 93739ab27c
commit 8e50828a2e

View file

@ -141,7 +141,7 @@
}; };
# should set the "default" pipeline # should set the "default" pipeline
ci = { ci = {
stages = ["test" "build" "deploy"]; stages = ["test" "nixtest" "build" "deploy"];
jobs = { jobs = {
"test" = { "test" = {
stage = "test"; stage = "test";
@ -197,6 +197,18 @@
} }
]; ];
}; };
"nixtest" = {
stage = "nixtest";
script = [
# sh
"nix run .#nixtests:run -- --junit=junit.xml"
];
allow_failure = true;
artifacts = {
when = "always";
reports.junit = "junit.xml";
};
};
}; };
}; };
pipelines."non-default" = { pipelines."non-default" = {