forgejo-runner: add nixos/forgejo VM test to passthru.tests

`nixos/forgejo` tests both the runner registration and a simple
workflow now :).
This commit is contained in:
emilylange
2024-04-10 22:09:59 +02:00
parent 117a1a6a2c
commit 1ec3a5a4d5
+7 -3
View File
@@ -3,6 +3,7 @@
, fetchFromGitea
, testers
, forgejo-runner
, nixosTests
}:
buildGoModule rec {
@@ -27,9 +28,12 @@ buildGoModule rec {
doCheck = false; # Test try to lookup code.forgejo.org.
passthru.tests.version = testers.testVersion {
package = forgejo-runner;
version = src.rev;
passthru.tests = {
inherit (nixosTests.forgejo) sqlite3;
version = testers.testVersion {
package = forgejo-runner;
version = src.rev;
};
};
meta = with lib; {