From 4ff2c0899b92281031d9420e82e2836a471a035b Mon Sep 17 00:00:00 2001 From: Mabrouk Mahdhi Date: Fri, 24 Jan 2025 01:43:33 +0100 Subject: [PATCH 1/2] DATA: InstallPlaywrightTask --- .../DotNets/Tasks/InstallPlaywrightTask.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs diff --git a/ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs b/ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs new file mode 100644 index 0000000..607861c --- /dev/null +++ b/ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs @@ -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"; + } +} From 3efb68194308ff270cb678beb17183cf976d4d83 Mon Sep 17 00:00:00 2001 From: Mabrouk Mahdhi <16063715+mabroukmahdhi@users.noreply.github.com> Date: Mon, 27 Jan 2025 18:08:12 +0100 Subject: [PATCH 2/2] CODE RUB: Add Summary Co-authored-by: Christo du Toit --- .../DotNets/Tasks/InstallPlaywrightTask.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs b/ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs index 607861c..fd99490 100644 --- a/ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs +++ b/ADotNet/Models/Pipelines/GithubPipelines/DotNets/Tasks/InstallPlaywrightTask.cs @@ -6,8 +6,20 @@ namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets.Tasks { + /// + /// A task to install Microsoft.Playwright.CLI. + /// public class InstallPlaywrightTask : GithubTask { + /// + /// Gets or sets the name of task. + /// + public override string Name { get; set; } = "Install Microsoft.Playwright.CLI."; + + /// + /// Gets or sets the command to execute for the task. + /// The default value is: "dotnet tool install --global Microsoft.Playwright.CLI". + /// public override string Run { get; set; } = "dotnet tool install --global Microsoft.Playwright.CLI"; } }