From d7d7b64dd7fb3e8a91dfd9e3366499a1f14133f7 Mon Sep 17 00:00:00 2001 From: Fredi Machado Date: Sat, 25 May 2024 19:30:35 +1000 Subject: [PATCH] Try to show test summary --- .github/workflows/admin-api.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/admin-api.yml b/.github/workflows/admin-api.yml index cf3d18f..e46dd5f 100644 --- a/.github/workflows/admin-api.yml +++ b/.github/workflows/admin-api.yml @@ -53,14 +53,14 @@ jobs: - name: Test id: test - run: > - dotnet test ../**.Tests/**.csproj - --results-directory ${{github.workspace}}/TestResults --blame - --logger console --logger trx --logger html - --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" - '/p:CollectCoverage=true;CoverletOutputFormat="json,lcov,cobertura";MergeWith=${{github.workspace}}/TestResults/coverage.json;CoverletOutput=${{github.workspace}}/TestResults/coverage' - -- - RunConfiguration.CollectSourceInformation=true + run: | + echo "## Test results" >> $GITHUB_STEP_SUMMARY + dotnet test ../**.Tests/**.csproj \ + --results-directory ${{github.workspace}}/TestResults --blame \ + --logger console --logger trx --logger html \ + --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" \ + '/p:CollectCoverage=true;CoverletOutputFormat="json,lcov,cobertura";MergeWith=${{github.workspace}}/TestResults/coverage.json;CoverletOutput=${{github.workspace}}/TestResults/coverage' \ + -- RunConfiguration.CollectSourceInformation=true - name: Upload Test Results if: (success() || steps.test.conclusion == 'failure')