diff --git a/dist/action.js.map b/dist/action.js.map index 6b628a0..1b326b6 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,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,GACjB,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;IACvB,IAAI,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;IAClC,IAAI,GAAG,KAAK,EAAE,EAAE;QACd,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC;KACd;IACD,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC;IAEvB,oBAAoB;IACpB,MAAM,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;IACpE,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,Q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B,CAAC,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EACjE,GAAG,aAAa,IAAI,UAAU,CAAC,EAAE,EAAE,CACpC,CAAC;KACH;AACH,CAAC;AAED,eAAe,MAAM,CAAC"} \ No newline at end of file +{"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,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,GACjB,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;IACvB,IAAI,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;IAClC,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;QACf,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC;IACf,CAAC;IACD,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC;IAEvB,oBAAoB;IACpB,MAAM,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;IACpE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CAAC,IAAI;gBAC5B,UAAU;gBACV,kBAAkB,aAAa,IAAI,UAAU,CAAC,EAAE,gBAAgB;aACjE;SACF,CAAC;aACD,KAAK,EAAE,CAAC;IACb,CAAC;IAED,6CAA6C;IAC7C,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAC7B,MAAM,IAAI,OAAO,CACf,wBAAwB,CAAC,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EACjE,GAAG,aAAa,IAAI,UAAU,CAAC,EAAE,EAAE,CACpC,CAAC;IACJ,CAAC;AACH,CAAC;AAED,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/dist/main.js.map b/dist/main.js.map index e7ce4ad..6194bf7 100644 --- a/dist/main.js.map +++ b/dist/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,4BAA4B,CAAC;AAEpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,IAAI,EAAE,GAA4B,SAAS,CAAC;AAE5C,IAAI;IACF,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;QAC1B,IAAI,EAAE,QAAQ,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACnD,CAAC,CAAC;IAEH,EAAE,GAAG,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjE,0CAA0C;IAC1C,+CAA+C;IAC/C,MAAM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U,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjE,0CAA0C;IAC1C,+CAA+C;IAC/C,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC;AACnB,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,IAAI,OAAe,CAAC;IAEpB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IAC1B,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,yDAAyD;IACzD,yHAAyH;IACzH,IAAI,EAAE,IAAI,eAAe,CAAC,4BAA4B,CAAC,EAAE,CAAC;QACxD,MAAM,GAAG,GAAG,KAAK,YAAY,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7D,MAAM,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC;IACjD,CAAC;IAED,oDAAoD;IACpD,SAAS,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/dist/schema/input.js b/dist/schema/input.js new file mode 100644 index 0000000..39f3c83 --- /dev/null +++ b/dist/schema/input.js @@ -0,0 +1,66 @@ +import { z } from 'zod'; +export const tfScopeSchema = z.enum(['public', 'private']); +// Parse string input into object of key-value pairs +// input: 'REPO_URL=GITHUB_SERVER_URL/GITHUB_REPOSITORY;REPO_NAME=GITHUB_REPOSITORY' +// output: { REPO_URL: 'GITHUB_SERVER_URL/GITHUB_REPOSITORY', REPO_NAME: 'GITHUB_REPOSITORY' } +const stringToArraySchema = z.string().transform(str => str.split(';')); +const keyValueArrayToObjectSchema = stringToArraySchema.transform(arr => { + let obj = {}; + arr.forEach(item => { + const [key, value] = item.split('='); + // ''.split('=') returns [''] ; we have to check for this case + if (key === '' && value === undefined) + return; + // 'abc'.split('=') returns ['abc'] ; we have to check for this case + obj[key] = value !== null && value !== void 0 ? value : ''; + }); + return z.record(z.string(), z.string()).parse(obj); +}); +export const tmtEnvVarsSchema = keyValueArrayToObjectSchema; +export const tmtEnvSecretsSchema = keyValueArrayToObjectSchema; +export const tmtArtifactsInputSchema = stringToArraySchema.transform(arr => { + let artifacts = []; + arr.forEach(item => { + if (item === '') + return; + artifacts.push({ type: 'fedora-copr-build', id: item }); + }); + return artifacts; +}); +export const tmtContextInputSchema = keyValueArrayToObjectSchema; +// https://testing-farm.gitlab.io/api/#operation/requestsPost +export const tmtArtifactsSchema = z + .array(z.object({ + id: z.string().min(1), + type: z.string().min(1), + packages: z.array(z.string().min(1)).optional(), + install: z.boolean().optional(), + order: z.number().optional(), +})) + .default([]); +// https://testing-farm.gitlab.io/api/#operation/requestsPost +export const tmtContextSchema = z + .object({ + distro: z.string().min(1), + arch: z.string().min(1), + trigger: z.string().min(1), +}) + .optional() + .or(z.object({}).transform(() => undefined)); +export const envSettingsSchema = z + .object({ + pipeline: z + .object({ + skip_guest_setup: z.boolean().optional(), + }) + .optional(), + provisioning: z + .object({ + post_install_script: z.string().min(1).optional(), + tags: z.record(z.string()).optional(), + }) + .optional(), +}) + .optional(); +export const timeoutSchema = z.coerce.number(); +//# sourceMappingURL=input.js.map \ No newline at end of file diff --git a/dist/schema/input.js.map b/dist/schema/input.js.map new file mode 100644 index 0000000..455d81e --- /dev/null +++ b/dist/schema/input.js.map @@ -0,0 +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,C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,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"} \ No newline at end of file diff --git a/package.json b/package.json index d0f0ee6..4f0122e 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "eslint": "^8.56.0", "prettier": "^3.0.3", "ts-node": "^10.9.2", - "typescript": "^5.2.2", + "typescript": "^5.3.3", "vitest": "^0.34.6" } } diff --git a/yarn.lock b/yarn.lock index 794a65b..5afbc2b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3047,7 +3047,7 @@ __metadata: prettier: ^3.0.3 testing-farm: ^1.5.1 ts-node: ^10.9.2 - typescript: ^5.2.2 + typescript: ^5.3.3 vitest: ^0.34.6 zod: ^3.22.4 languageName: unknown @@ -3177,23 +3177,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.2.2": - version: 5.2.2 - resolution: "typescript@npm:5.2.2" +"typescript@npm:^5.3.3": + version: 5.3.3 + resolution: "typescript@npm:5.3.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 7912821dac4d962d315c36800fe387cdc0a6298dba7ec171b350b4a6e988b51d7b8f051317786db1094bd7431d526b648aba7da8236607febb26cf5b871d2d3c + checksum: 2007ccb6e51bbbf6fde0a78099efe04dc1c3dfbdff04ca3b6a8bc717991862b39fd6126c0c3ebf2d2d98ac5e960bcaa873826bb2bb241f14277034148f41f6a2 languageName: node linkType: hard -"typescript@patch:typescript@^5.2.2#~builtin": - version: 5.2.2 - resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441" +"typescript@patch:typescript@^5.3.3#~builtin": + version: 5.3.3 + resolution: "typescript@patch:typescript@npm%3A5.3.3#~builtin::version=5.3.3&hash=29ae49" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca + checksum: f61375590b3162599f0f0d5b8737877ac0a7bc52761dbb585d67e7b8753a3a4c42d9a554c4cc929f591ffcf3a2b0602f65ae3ce74714fd5652623a816862b610 languageName: node linkType: hard