From a112a598a3cd0dd65399486287201705c2ee16c0 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 9 Jul 2023 10:26:42 -0400 Subject: [PATCH] kube-score: add version test --- .../networking/cluster/kube-score/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/networking/cluster/kube-score/default.nix b/pkgs/applications/networking/cluster/kube-score/default.nix index 720bf00ff6b3..3caa17c2a5e2 100644 --- a/pkgs/applications/networking/cluster/kube-score/default.nix +++ b/pkgs/applications/networking/cluster/kube-score/default.nix @@ -1,6 +1,8 @@ { lib , buildGoModule , fetchFromGitHub +, testers +, kube-score }: buildGoModule rec { @@ -23,6 +25,13 @@ buildGoModule rec { "-X=main.commit=${src.rev}" ]; + passthru.tests = { + version = testers.testVersion { + package = kube-score; + command = "kube-score version"; + }; + }; + meta = with lib; { description = "Kubernetes object analysis with recommendations for improved reliability and security"; homepage = "https://github.com/zegl/kube-score";