@factorialco/gat
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,5 +0,5 @@ | ||
export interface ConcurrencyGroup { | ||
export type ConcurrencyGroup = { | ||
groupSuffix: string; | ||
cancelPrevious: boolean; | ||
} | ||
}; | ||
export interface Matrix { | ||
@@ -32,3 +32,3 @@ elements: Array<{ | ||
env?: Record<string, string>; | ||
concurrency?: ConcurrencyGroup; | ||
concurrency?: ConcurrencyGroup | null; | ||
matrix?: Matrix | string; | ||
@@ -35,0 +35,0 @@ steps: Step[]; |
@@ -21,3 +21,3 @@ import { ConcurrencyGroup, Job, JobOptions, StringWithNoSpaces } from "./job"; | ||
env: EnvVar[]; | ||
concurrencyGroup?: ConcurrencyGroup; | ||
concurrencyGroup?: ConcurrencyGroup | null; | ||
constructor(name: string); | ||
@@ -28,3 +28,3 @@ on<T extends EventName>(name: T, options?: EventOptions<T>): this; | ||
setEnv(name: string, value: string): this; | ||
setConcurrencyGroup(concurrencyGroup: ConcurrencyGroup): this; | ||
setConcurrencyGroup(concurrencyGroup: ConcurrencyGroup | null): this; | ||
defaultRunner(): string; | ||
@@ -31,0 +31,0 @@ compile(filepath?: string): Promise<string | void>; |
@@ -246,2 +246,16 @@ "use strict"; | ||
}); | ||
(0, vitest_1.it)("allows creating jobs with concurrency set to null", async () => { | ||
const workflow = new workflow_1.Workflow("Without concurrency") | ||
.on("push") | ||
.addJob("job1", { | ||
concurrency: null, | ||
steps: [ | ||
{ | ||
name: "Do something", | ||
run: "exit 0", | ||
}, | ||
], | ||
}); | ||
(0, vitest_1.expect)(await workflow.compile()).toMatchSnapshot(); | ||
}); | ||
}); |
{ | ||
"name": "@factorialco/gat", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Write your GitHub Actions workflows using TypeScript", | ||
@@ -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
25862
601