mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge pull request #216477 from raboof/scorecards-version-test
scorecard: add 'version' test
This commit is contained in:
commit
5a9628a3a6
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user