Merge pull request #216477 from raboof/scorecards-version-test

scorecard: add 'version' test
This commit is contained in:
Arnout Engelen 2023-05-09 17:16:41 +02:00 committed by GitHub
commit 5a9628a3a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}";