Skip to content

Commit

Permalink
Test: Add GitHubActions logger for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Oct 31, 2024
1 parent a1b9407 commit a28515b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/System.Waf.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: dotnet build ./src/System.Waf/System.Waf.sln -c Release -p:ContinuousIntegrationBuild=true

- name: 🕵️ Test
run: dotnet test ./src/System.Waf/System.Waf.sln -c Release --no-build
run: dotnet test ./src/System.Waf/System.Waf.sln -c Release --no-build --logger GitHubActions

- name: 📦 Upload NuGet Packages
uses: actions/upload-artifact@v4
Expand Down
6 changes: 2 additions & 4 deletions src/System.Waf/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MinVer">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MinVer" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>

<Choose>
Expand All @@ -24,6 +21,7 @@
<RunSettingsFilePath>$(MSBuildThisFileDirectory)CodeCoverage.runsettings</RunSettingsFilePath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
Expand Down
13 changes: 7 additions & 6 deletions src/System.Waf/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
<!-- Build -->
<!-- Build -->
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="MinVer" Version="6.0.0" />

<!-- WAF -->
<PackageVersion Include="System.ComponentModel.Annotations" Version="4.5.0" />
<PackageVersion Include="System.ComponentModel.Composition" Version="4.7.0" />

<!-- Samples-->
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.8" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.8" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SQLite" Version="8.0.8" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageVersion Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
<PackageVersion Include="NLog" Version="5.3.4" />

<!-- Unit tests -->
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.0" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.0" />
</ItemGroup>
</Project>
</Project>

0 comments on commit a28515b

Please sign in to comment.