gitlab-ci-local: add version test

This commit is contained in:
Shogo Takata 2024-07-08 13:19:07 +09:00
parent 498e1283c5
commit 97f90494c8
No known key found for this signature in database
GPG Key ID: 4BB7EF28F88F6E7A

View File

@ -2,6 +2,8 @@
, fetchFromGitHub , fetchFromGitHub
, lib , lib
, nix-update-script , nix-update-script
, gitlab-ci-local
, testers
}: }:
buildNpmPackage rec { buildNpmPackage rec {
@ -23,7 +25,12 @@ buildNpmPackage rec {
--replace-fail "npm run cleanup" "true" --replace-fail "npm run cleanup" "true"
''; '';
passthru.updateScript = nix-update-script { }; passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = gitlab-ci-local;
};
};
meta = with lib;{ meta = with lib;{
description = "Run gitlab pipelines locally as shell executor or docker executor"; description = "Run gitlab pipelines locally as shell executor or docker executor";