-
Notifications
You must be signed in to change notification settings - Fork 34
DATA: InstallPlaywrightBrowsersTask #140
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,41 @@ | ||
| // --------------------------------------------------------------------------- | ||
| // 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 installs Playwright browsers for a given project. | ||
| /// </summary> | ||
| public class InstallPlaywrightBrowsersTask : GithubTask | ||
| { | ||
| private readonly string projectName; | ||
| private readonly string dotnetVersion; | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="InstallPlaywrightBrowsersTask"/> class. | ||
| /// </summary> | ||
| /// <param name="projectName">The name of the project for which Playwright browsers should be installed.</param> | ||
| public InstallPlaywrightBrowsersTask( | ||
| string projectName, | ||
| string dotnetVersion = "net9.0") | ||
| { | ||
| this.projectName = projectName; | ||
| this.dotnetVersion = dotnetVersion; | ||
| } | ||
| /// <summary> | ||
| /// Gets or sets the name of the task. | ||
| /// The default value is: "Install Microsoft.Playwright.CLI". | ||
| /// </summary> | ||
| public override string Name { get; set; } = "Install Microsoft.Playwright.CLI."; | ||
|
|
||
| /// <summary> | ||
| /// Gets the command to execute for the task. | ||
| /// The command installs Playwright browsers by running the Playwright CLI script. | ||
| /// The default value is: "pwsh ./{projectName}/bin/Debug/{dotnetVersion}/playwright.ps1 install". | ||
| /// </summary> | ||
| public override string Run => $"pwsh ./{projectName}/bin/Debug/{dotnetVersion}/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"; | ||
|
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. Not expecting this as we have another PR for this. Can you remove this file.
Contributor
Author
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. The reason is that this branche is based on other one. |
||
| } | ||
| } | ||
| 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 | ||
|
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. Not expecting this file as it is in another PR already
Contributor
Author
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. The reason is that this branche is based on other one. |
||
| { | ||
| public override string Run { get; set; } = "dotnet workload update"; | ||
| } | ||
| } | ||
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