diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46c086ba1a..4b1bd5feb7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,8 +28,13 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 - run: dotnet build /p:TreatWarningsAsErrors=true - - run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura + - run: dotnet test --no-build --logger 'junit' /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura + - uses: test-summary/action@v2 + if: always() + with: + paths: 'test/**/TestResults/**/*.xml' - uses: danielpalme/ReportGenerator-GitHub-Action@5 + if: always() with: reports: 'test/**/*cobertura.xml' reporttypes: 'Cobertura' @@ -37,7 +42,7 @@ jobs: - uses: clearlyip/code-coverage-report-action@v4 id: code_coverage_report_action # dont run for dependabot - if: ${{ github.actor != 'dependabot[bot]'}} + if: always() && ${{ github.actor != 'dependabot[bot]'}} with: filename: 'Cobertura.xml' overall_coverage_fail_threshold: 75 diff --git a/.gitignore b/.gitignore index 6645b6c10c..d192b7ecdb 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,9 @@ obj/ # dot user settings *.DotSettings.user +# test logs +**/TestResults/**/*.xml + # code coverage results *.coverage *.coveragexml diff --git a/test/Directory.Build.props b/test/Directory.Build.props index d48c82d6a4..9d436e4192 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -29,6 +29,7 @@ + all