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 17:52:52 +02:00
parent 117a1a6a2c
commit 1ec3a5a4d5
No known key found for this signature in database
GPG Key ID: 0AD773CE46FD0F87

View File

@ -3,6 +3,7 @@
, fetchFromGitea , fetchFromGitea
, testers , testers
, forgejo-runner , forgejo-runner
, nixosTests
}: }:
buildGoModule rec { buildGoModule rec {
@ -27,9 +28,12 @@ buildGoModule rec {
doCheck = false; # Test try to lookup code.forgejo.org. doCheck = false; # Test try to lookup code.forgejo.org.
passthru.tests.version = testers.testVersion { passthru.tests = {
package = forgejo-runner; inherit (nixosTests.forgejo) sqlite3;
version = src.rev; version = testers.testVersion {
package = forgejo-runner;
version = src.rev;
};
}; };
meta = with lib; { meta = with lib; {