goreleaser: add version test
This commit is contained in:
parent
7492de307a
commit
f19ab9bab9
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, buildPackages
|
||||
, testers
|
||||
, goreleaser
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "goreleaser";
|
||||
|
@ -37,6 +39,12 @@ buildGoModule rec {
|
|||
--zsh <(${emulator} $out/bin/goreleaser completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = goreleaser;
|
||||
command = "goreleaser -v";
|
||||
inherit version;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Deliver Go binaries as fast and easily as possible";
|
||||
homepage = "https://goreleaser.com";
|
||||
|
|
Loading…
Reference in a new issue