Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

@cjdutoit cjdutoit Jan 27, 2025

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor Author

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

{
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";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add descriptive documentation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The 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"
                    },

}
}