diff --git a/README.md b/README.md index b22e3c9..f33ddee 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ See [Testing Farm onboarding guide](https://docs.testing-farm.io/Testing%20Farm/ | `git_ref` | A tmt tests branch which will be used for tests | master | | `tmt_plan_regex` | A regular expression used to select tmt plans | all | | `tmt_context` | A mapping of tmt context variable [tmt-context](https://tmt.readthedocs.io/en/latest/spec/context.html), variables separated by ; | empty | +| `path` | A path in the repository with tmt metadata | "." | ### Test Environment diff --git a/dist/action.js.map b/dist/action.js.map index 51e1b03..8ab2b02 100644 --- a/dist/action.js.map +++ b/dist/action.js.map @@ -1 +1 @@ -{"version":3,"file":"action.js","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,MAAM,EACN,SAAS,EACT,OAAO,GACR,MAAM,eAAe,CAAC;AAEvB,OAAO,cAAc,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE9D,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,oBAAoB,EACpB,aAAa,GACd,MAAM,2BAA2B,CAAC;AAEnC,KAAK,UAAU,MAAM,CAAC,EAAe;IACnC,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEvC,MAAM,GAAG,GAAG,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC;IAE3C,uBAAuB;IACv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408b8a..68d33a8 100644 --- a/dist/schema/input.d.ts +++ b/dist/schema/input.d.ts @@ -15,14 +15,14 @@ export declare const tmtArtifactsSchema: z.ZodDefault; order: z.ZodOptional; }, "strip", z.ZodTypeAny, { - id: string; type: string; + id: string; packages?: string[] | undefined; install?: boolean | undefined; order?: number | undefined; }, { - id: string; type: string; + id: string; packages?: string[] | undefined; install?: boolean | undefined; order?: number | undefined; @@ -92,3 +92,4 @@ export declare const envSettingsSchema: z.ZodOptional>; export declare const timeoutSchema: z.ZodNumber; export declare const tmtPlanRegexSchema: z.ZodString; +export declare const tmtPathSchema: z.ZodDefault>; diff --git a/dist/schema/input.js b/dist/schema/input.js index f6d8791..a84aef6 100644 --- a/dist/schema/input.js +++ b/dist/schema/input.js @@ -67,4 +67,5 @@ export const envSettingsSchema = z .optional(); export const timeoutSchema = z.coerce.number(); export const tmtPlanRegexSchema = z.string().min(1); +export const tmtPathSchema = z.string().min(1).optional().default("."); //# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/dist/schema/input.js.map b/dist/schema/input.js.map index d414ad3..89135b9 100644 --- a/dist/schema/input.js.map +++ b/dist/schema/input.js.map @@ -1 +1 @@ -{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/schema/input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAE3D,oDAAoD;AACpD,oFAAoF;AACpF,8FAA8F;AAC9F,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACxE,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACtE,IAAI,GAAG,GAA8B,EAAE,CAA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AAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACzC,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC;SACZ,MAAM,CAAC;QACN,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACjD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KACtC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/src/action.ts b/src/action.ts index e64aa10..736001b 100644 --- a/src/action.ts +++ b/src/action.ts @@ -26,6 +26,7 @@ import { tmtEnvSecretsSchema, tmtEnvVarsSchema, tmtPlanRegexSchema, + tmtPathSchema, } from './schema/input'; import { RequestDetails, diff --git a/src/schema/input.ts b/src/schema/input.ts index 77f765a..9ec085c 100644 --- a/src/schema/input.ts +++ b/src/schema/input.ts @@ -79,3 +79,5 @@ export const envSettingsSchema = z export const timeoutSchema = z.coerce.number(); export const tmtPlanRegexSchema = z.string().min(1); + +export const tmtPathSchema = z.string().min(1).optional().default('.');