Skip to content

Commit

Permalink
Ensure GitHubActionsTestLogger is in use
Browse files Browse the repository at this point in the history
* Add plain Directory.Packages.props for global private references
  • Loading branch information
lahma committed Aug 2, 2024
1 parent 7d6df3a commit 3859965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@

</PropertyGroup>

<!-- should go to Directory.Packages.props when CPM will be enabled -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
<GlobalPackageReference Include="GitHubActionsTestLogger" Version="2.4.1" />
<GlobalPackageReference Include="PolySharp" Version="1.14.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.Build.Evaluation;
using Microsoft.Build.Locator;
using Nuke.Common;
using Nuke.Common.CI.GitHubActions;
using Nuke.Common.Git;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
Expand Down Expand Up @@ -230,6 +231,7 @@ protected override void OnBuildInitialized()
.EnableNoRestore()
.EnableNoBuild()
.SetConfiguration(Configuration)
.When(GitHubActions.Instance is not null, x => x.SetLoggers("GitHubActions"))
);
}
});
Expand Down

0 comments on commit 3859965

Please sign in to comment.