scorecard: add 'version' test

This commit is contained in:
Arnout Engelen 2023-02-15 14:39:18 +01:00
parent 545c7a31e5
commit 4e899b3a94
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA

View File

@ -1,4 +1,11 @@
{ lib, buildGoModule, fetchFromGitHub, fetchgit, installShellFiles }:
{ lib
, buildGoModule
, fetchFromGitHub
, fetchgit
, installShellFiles
, testers
, scorecard
}:
buildGoModule rec {
pname = "scorecard";
@ -67,6 +74,12 @@ buildGoModule rec {
runHook postInstallCheck
'';
passthru.tests.version = testers.testVersion {
package = scorecard;
command = "scorecard version";
version = "v${version}";
};
meta = with lib; {
homepage = "https://github.com/ossf/scorecard";
changelog = "https://github.com/ossf/scorecard/releases/tag/v${version}";