@factorialco/gat
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -23,2 +23,3 @@ export interface ConcurrencyGroup { | ||
export interface JobOptions<Step, Runner, Name> { | ||
prettyName?: string; | ||
ifExpression?: string; | ||
@@ -25,0 +26,0 @@ runsOn?: Runner; |
@@ -56,5 +56,6 @@ "use strict"; | ||
: undefined, | ||
jobs: Object.fromEntries(this.jobs.map(({ name, options: { ifExpression, runsOn, matrix, env, steps, dependsOn, services, timeout, concurrency, outputs, }, }) => [ | ||
jobs: Object.fromEntries(this.jobs.map(({ name, options: { prettyName, ifExpression, runsOn, matrix, env, steps, dependsOn, services, timeout, concurrency, outputs, }, }) => [ | ||
name, | ||
{ | ||
name: prettyName, | ||
if: ifExpression, | ||
@@ -61,0 +62,0 @@ "runs-on": this.assignRunner(runsOn), |
@@ -194,2 +194,11 @@ "use strict"; | ||
}); | ||
(0, vitest_1.it)("supports a pretty name for the job", () => { | ||
const workflow = new workflow_1.Workflow("Job with pretty name") | ||
.on("push") | ||
.addJob("job1", { | ||
prettyName: "My pretty name", | ||
steps: [{ name: "Do something", run: "exit 0" }], | ||
}); | ||
(0, vitest_1.expect)(workflow.compile()).toMatchSnapshot(); | ||
}); | ||
}); |
{ | ||
"name": "@factorialco/gat", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "TODO", | ||
@@ -5,0 +5,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18281
471