pgweb: fix tests
Register NixOS tests from https://github.com/NixOS/nixpkgs/pull/382268 in passthru.tests so they automatically run when the package version is updated. Refs https://github.com/Thaigersprint/thaigersprint-2025/issues/1
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
pgweb,
|
||||
nixosTests,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@@ -41,10 +42,13 @@ buildGoModule rec {
|
||||
"${builtins.concatStringsSep "|" skippedTests}"
|
||||
];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
version = "v${version}";
|
||||
package = pgweb;
|
||||
command = "pgweb --version";
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
version = "v${version}";
|
||||
package = pgweb;
|
||||
command = "pgweb --version";
|
||||
};
|
||||
integration_test = nixosTests.pgweb;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user