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:
parent
117a1a6a2c
commit
1ec3a5a4d5
|
@ -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; {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user