goreleaser: add version test

This commit is contained in:
Robert James Hernandez 2023-10-07 21:20:47 +00:00
parent 7492de307a
commit f19ab9bab9

View file

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