Skip to content

Commit

Permalink
Update CICD NuGet with fix for slow package creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielOda committed Jul 28, 2023
1 parent d21d0bd commit 59c883b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion GitHubAction/Package.Builder/Package.Builder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Skyline.DataMiner.CICD.DMApp.Automation" Version="1.0.1.4" />
<PackageReference Include="Skyline.DataMiner.CICD.DMApp.Automation" Version="1.0.1.5" />
</ItemGroup>

<ItemGroup>
Expand Down
24 changes: 16 additions & 8 deletions GitHubAction/Package.Builder/PackageBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,42 @@

public class GitHubActionLogger : ILogCollector
{
public IList<string> Logging { get; }
private readonly List<string> _logging;
private readonly IPackagePresenter _presenter;

public IReadOnlyList<string> Logging => _logging.ToList();

public bool HasError { get; private set; }
private IPackagePresenter _presenter;

public GitHubActionLogger(IPackagePresenter presenter)
{
Logging = new List<string>();
_logging = new List<string>();
HasError = false;
_presenter = presenter;
}

public void ReportError(string error)
{
HasError = true;
Logging.Add("ERROR: " + error);
_logging.Add("ERROR: " + error);
}

public void ReportStatus(string status)
{
Logging.Add("STATUS: " + status);
_logging.Add("STATUS: " + status);
}

public void ReportWarning(string warning)
{
Logging.Add("WARNING: " + warning);
}
_logging.Add("WARNING: " + warning);
}

public void ReportLog(string message)
{
_logging.Add(message);
}

public void SendToPresenter()
public void SendToPresenter()
{
foreach (var line in Logging)
{
Expand Down

0 comments on commit 59c883b

Please sign in to comment.