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
1 changed files with 7 additions and 3 deletions

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; {