mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-11 17:50:08 +01:00
ci: add nixtest job
This commit is contained in:
parent
93739ab27c
commit
8e50828a2e
1 changed files with 13 additions and 1 deletions
14
flake.nix
14
flake.nix
|
|
@ -141,7 +141,7 @@
|
|||
};
|
||||
# should set the "default" pipeline
|
||||
ci = {
|
||||
stages = ["test" "build" "deploy"];
|
||||
stages = ["test" "nixtest" "build" "deploy"];
|
||||
jobs = {
|
||||
"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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue