-
Notifications
You must be signed in to change notification settings - Fork 34
DATA: WorkloadUpdateTask #135
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?
Changes from all commits
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,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,27 @@ | ||
| // --------------------------------------------------------------------------- | ||
| // 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 | ||
| { | ||
| /// <summary> | ||
| /// Represents a task that updates the installed workloads in the .NET SDK. | ||
| /// </summary> | ||
| public class WorkloadUpdateTask : GithubTask | ||
| { | ||
| /// <summary> | ||
| /// Gets or sets the name of the task. | ||
| /// The default value is: "Update installed workloads in the .NET SDK". | ||
| /// </summary> | ||
| public override string Name { get; set; } = "Update installed workloads in the .NET SDK"; | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets the command to execute for the task. | ||
| /// The command updates all installed workloads in the .NET SDK to their latest versions. | ||
| /// The default value is: "dotnet workload update". | ||
| /// </summary> | ||
| public override string Run { get; set; } = "dotnet workload update"; | ||
|
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 descriptive documentation.
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. @hassanhabib don't have an issue with this task itself, but but do we have some criteria on when to allow new tasks VS just using the generic task command in the job like below? new GithubTask()
{
Name = "Update installed workloads",
Run = "dotnet workload update"
}, |
||
| } | ||
| } | ||
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.
Not expecting this file. There is another open PR for this component. Can we remove this file from the PR so components can be reviewed individually
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.
Yeah, That's because this PR's branche is based on the other one @cjdutoit