From 8e50828a2e837a36225d531816ac4fcc040e4144 Mon Sep 17 00:00:00 2001 From: technofab Date: Sat, 10 May 2025 20:00:30 +0200 Subject: [PATCH] ci: add nixtest job --- flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2704302..dfed39b 100644 --- a/flake.nix +++ b/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" = {