@factorialco/gat
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,3 +0,3 @@ | ||
export declare type EventName = "push" | "pull_request" | "pull_request_review" | "workflow_run" | "workflow_dispatch"; | ||
export declare type EventOptions<T extends EventName> = T extends "push" ? PushEventOptions : T extends "pull_request" ? PullRequestEventOptions : T extends "pull_request_review" ? PullRequestReviewEventOptions : T extends "workflow_run" ? WorkflowRunEventOptions : T extends "workflow_dispatch" ? WorkflowDispatchEventOptions : never; | ||
export declare type EventName = "push" | "pull_request" | "pull_request_review" | "workflow_run" | "workflow_dispatch" | "schedule"; | ||
export declare type EventOptions<T extends EventName> = T extends "push" ? PushEventOptions : T extends "pull_request" ? PullRequestEventOptions : T extends "pull_request_review" ? PullRequestReviewEventOptions : T extends "workflow_run" ? WorkflowRunEventOptions : T extends "workflow_dispatch" ? WorkflowDispatchEventOptions : T extends "schedule" ? ScheduleEventOptions : never; | ||
interface PushEventOptions { | ||
@@ -27,2 +27,5 @@ branches?: string[]; | ||
} | ||
declare type ScheduleEventOptions = Array<{ | ||
cron: string; | ||
}>; | ||
export interface Event { | ||
@@ -29,0 +32,0 @@ name: EventName; |
@@ -186,2 +186,10 @@ "use strict"; | ||
}); | ||
(0, vitest_1.it)("supports schedule event", () => { | ||
const workflow = new workflow_1.Workflow("Schedule") | ||
.on("schedule", [{ cron: "0 4 * * 1-5" }]) | ||
.addJob("job1", { | ||
steps: [{ name: "Do something", run: "exit 0" }], | ||
}); | ||
(0, vitest_1.expect)(workflow.compile()).toMatchSnapshot(); | ||
}); | ||
}); |
{ | ||
"name": "@factorialco/gat", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"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
17784
459