diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11a03b9..f183d6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,14 +61,6 @@ jobs: with: name: coverage path: ./artifacts/coverage-report - - name: Report test results - uses: dorny/test-reporter@v1.6.0 - continue-on-error: true - if: ${{ always() }} - with: - name: Test results - path: 'artifacts/test-results/**/*.trx' - reporter: dotnet-trx - name: Determine if we're skipping release on feature Pull Request if: ${{ env.IS_FEATURE_PULL_REQUEST == 'true' }} run: | diff --git a/Directory.Packages.props b/Directory.Packages.props index a4d1a20..5cc7b77 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,6 +7,7 @@ + diff --git a/build/Build.cs b/build/Build.cs index 1fae16a..a7e7e19 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Linq; using Nuke.Common; using Nuke.Common.CI; @@ -111,11 +112,22 @@ from framework in testProject.GetTargetFrameworks() var testResultsName = $"{p.TestProject.Path.NameWithoutExtension}-{p.Framework}"; var testResultsDirectory = TestResultsDirectory / testResultsName; + var loggers = new List + { + $"trx;LogFileName={testResultsName}.trx", + $"html;LogFileName={testResultsName}.html" + }; + + if (IsServerBuild) + { + loggers.Add($"GitHubActions;annotations.titleFormat=$test ({p.Framework})"); + } + return ss .SetProjectFile(p.TestProject) .SetFramework(p.Framework) .SetResultsDirectory(testResultsDirectory) - .SetLoggers($"trx;LogFileName={testResultsName}.trx", $"html;LogFileName={testResultsName}.html"); + .SetLoggers(loggers); }), completeOnFailure: true); }); diff --git a/tests/dotnet-decode-base64-tests/dotnet-decode-base64-tests.csproj b/tests/dotnet-decode-base64-tests/dotnet-decode-base64-tests.csproj index f31dfcc..c2f96b8 100644 --- a/tests/dotnet-decode-base64-tests/dotnet-decode-base64-tests.csproj +++ b/tests/dotnet-decode-base64-tests/dotnet-decode-base64-tests.csproj @@ -24,6 +24,10 @@ all + + runtime; build; native; contentfiles; analyzers; buildtransitive + all +