git-bug: enable package tests

This change enables package tests, skipping tests that require the
network.
This commit is contained in:
sudoforge
2025-12-16 00:41:34 -08:00
parent 3311669969
commit b07524deaa
+19 -1
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
gitMinimal,
installShellFiles,
}:
@@ -20,7 +21,24 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
doCheck = false;
nativeCheckInputs = [
gitMinimal
];
checkFlags =
let
integrationTests = [
"TestValidateUsername/existing_organisation"
"TestValidateUsername/existing_organisation_with_bad_case"
"TestValidateUsername/existing_username"
"TestValidateUsername/existing_username_with_bad_case"
"TestValidateUsername/non_existing_username"
"TestValidateProject/public_project"
];
in
[
"-skip=^${lib.concatStringsSep "$|^" integrationTests}$"
];
excludedPackages = [
"doc"