Skip to content

Commit

Permalink
Merge pull request #179 from Numpsy/GitHubActionsTestLogger
Browse files Browse the repository at this point in the history
Try using GitHubActionsTestLogger to publish test results in the CI b…
  • Loading branch information
ironfede authored Oct 5, 2024
2 parents 8b769e3 + 99b6e4f commit 50f5f1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
- name: Build
run: dotnet build --no-restore --configuration ${{env.buildConfiguration}} -f ${{env.libFramework}} ${{env.buildProject}}
- name: Test
run: dotnet test -f ${{env.appFramework}} ${{env.testsProject}} --filter="${{env.testFilter}}"
run: dotnet test -f ${{env.appFramework}} ${{env.testsProject}} --filter="${{env.testFilter}}" --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
- name: Test Extensions
run: dotnet test -f ${{env.appFramework}} ${{env.extensionTestsProject}}

run: dotnet test -f ${{env.appFramework}} ${{env.extensionTestsProject}} --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"



Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<ProjectReference Include="..\..\OpenMcdf\OpenMcdf.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.3" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net45'))"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"/>
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"/>
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
</ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion sources/Test/OpenMcdf.Test/OpenMcdf.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
<ProjectReference Include="..\..\OpenMcdf\OpenMcdf.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.3" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net45'))"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"/>
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"/>
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
</ItemGroup>
Expand Down

0 comments on commit 50f5f1a

Please sign in to comment.