-
Notifications
You must be signed in to change notification settings - Fork 34
DATA: EventsV2 #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
DATA: EventsV2 #144
Changes from all commits
4ff2c08
f7a12d1
3217e27
50db6ba
a062501
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||
| // --------------------------------------------------------------------------- | ||||||||
| // Copyright (c) Hassan Habib & Shri Humrudha Jagathisun All rights reserved. | ||||||||
| // Licensed under the MIT License. | ||||||||
| // See License.txt in the project root for license information. | ||||||||
| // --------------------------------------------------------------------------- | ||||||||
|
|
||||||||
| using YamlDotNet.Serialization; | ||||||||
|
|
||||||||
| namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets | ||||||||
| { | ||||||||
| public class EventsV2 | ||||||||
| { | ||||||||
| [YamlMember(DefaultValuesHandling = DefaultValuesHandling.OmitDefaults)] | ||||||||
| public PushEvent Push { get; set; } | ||||||||
|
|
||||||||
| [YamlMember(Alias = "pull_request", DefaultValuesHandling = DefaultValuesHandling.OmitDefaults)] | ||||||||
| public PullRequestEvent PullRequest { get; set; } | ||||||||
|
|
||||||||
| public ScheduledEvent[] Schedule { get; set; } | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
| [YamlMember(Alias = "workflow_dispatch")] | ||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| public WorkflowDispatchEvent WorkflowDispatch { get; set; } | ||||||||
| } | ||||||||
| } | ||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||||||||||||
| // --------------------------------------------------------------------------- | ||||||||||||||||
| // Copyright (c) Hassan Habib & Shri Humrudha Jagathisun All rights reserved. | ||||||||||||||||
| // Licensed under the MIT License. | ||||||||||||||||
| // See License.txt in the project root for license information. | ||||||||||||||||
| // --------------------------------------------------------------------------- | ||||||||||||||||
|
|
||||||||||||||||
| using YamlDotNet.Serialization; | ||||||||||||||||
|
|
||||||||||||||||
| namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets | ||||||||||||||||
| { | ||||||||||||||||
| public class ScheduledEvent | ||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add documentation everywhere |
||||||||||||||||
| { | ||||||||||||||||
| [YamlMember(Order = 0, DefaultValuesHandling = DefaultValuesHandling.OmitDefaults)] | ||||||||||||||||
| public string Cron { get; set; } | ||||||||||||||||
|
Comment on lines
+13
to
+14
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| } | ||||||||||||||||
| } | ||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // --------------------------------------------------------------------------- | ||
| // Copyright (c) Hassan Habib & Shri Humrudha Jagathisun All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // See License.txt in the project root for license information. | ||
| // --------------------------------------------------------------------------- | ||
|
|
||
| using YamlDotNet.Serialization; | ||
|
|
||
| namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets.Tasks | ||
| { | ||
| public class InstallPlaywrightBrowsersTask : GithubTask | ||
| { | ||
| [YamlIgnore] | ||
| public string ProjectName { get; set; } | ||
| public override string Run => $"pwsh ./{ProjectName}/bin/Debug/net9.0/playwright.ps1 install"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // --------------------------------------------------------------------------- | ||
| // Copyright (c) Hassan Habib & Shri Humrudha Jagathisun All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // See License.txt in the project root for license information. | ||
| // --------------------------------------------------------------------------- | ||
|
|
||
| namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets.Tasks | ||
| { | ||
| public class InstallPlaywrightTask : GithubTask | ||
| { | ||
| public override string Run { get; set; } = "dotnet tool install --global Microsoft.Playwright.CLI"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // --------------------------------------------------------------------------- | ||
| // Copyright (c) Hassan Habib & Shri Humrudha Jagathisun All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // See License.txt in the project root for license information. | ||
| // --------------------------------------------------------------------------- | ||
|
|
||
| using YamlDotNet.Serialization; | ||
|
|
||
| namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets.Tasks | ||
| { | ||
| public class RunUntilFailureTask : GithubTask | ||
| { | ||
| [YamlMember(Order = 1, Alias = "shell", DefaultValuesHandling = DefaultValuesHandling.OmitDefaults)] | ||
| public override string Shell => "bash"; | ||
|
|
||
| [YamlMember(Order = 2, Alias = "run", DefaultValuesHandling = DefaultValuesHandling.OmitDefaults)] | ||
| public override string Run => "for i in {1..1000};" + | ||
| @" do echo ""Run #$i""; dotnet test --no-build " + | ||
| "--verbosity normal --filter 'FullyQualifiedName!~Integrations' || exit 1; done"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // --------------------------------------------------------------------------- | ||
| // Copyright (c) Hassan Habib & Shri Humrudha Jagathisun All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // See License.txt in the project root for license information. | ||
| // --------------------------------------------------------------------------- | ||
|
|
||
| namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets.Tasks | ||
| { | ||
| public class WorkloadUpdateTask : GithubTask | ||
| { | ||
| public override string Run { get; set; } = "dotnet workload update"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||||||||||||||||
| // --------------------------------------------------------------------------- | ||||||||||||||||||||||||
| // Copyright (c) Hassan Habib & Shri Humrudha Jagathisun All rights reserved. | ||||||||||||||||||||||||
| // Licensed under the MIT License. | ||||||||||||||||||||||||
| // See License.txt in the project root for license information. | ||||||||||||||||||||||||
| // --------------------------------------------------------------------------- | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets | ||||||||||||||||||||||||
| { | ||||||||||||||||||||||||
| public class WorkflowDispatchEvent | ||||||||||||||||||||||||
| { } | ||||||||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems incomplete, I was expecting properties
Suggested change
with public class WorkflowDispatchInput
{
[YamlMember(Order = 0]
public string Description { get; set; }
[YamlMember(Order = 1]
public bool Required { get; set; }
[YamlMember(Order = 2]
public string Default { get; set; }
} |
||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add documentation everywhere