From 658176028294898972946e99e5096789d81d6b48 Mon Sep 17 00:00:00 2001 From: Ken Tucker Date: Thu, 7 Nov 2024 08:47:08 -0500 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 573b71a31..867a53d69 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -69,18 +69,18 @@ jobs: - name: Run Unit Tests run: dotnet test ${{env.caliburn_sln}} --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage - - name: Code Coverage Report - uses: irongut/CodeCoverageSummary@v1.3.0 + - name: Create Test Coverage Badge + uses: simon-k/dotnet-code-coverage-badge@v1.0.0 + id: create_coverage_badge with: - filename: coverage/**/coverage.cobertura.xml - badge: true - fail_below_min: false - format: markdown - hide_branch_rate: false - hide_complexity: true - indicators: true - output: both - thresholds: '30 80' + label: Unit Test Coverage + color: brightgreen + path: .Tests/TestResults/coverage.opencover.xml + gist-filename: code-coverage.json + gist-id: 1234567890abcdef1234567890abcdef + gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} + - name: Print code coverage + run: echo "Code coverage percentage ${{steps.create_coverage_badge.outputs.percentage}}%" - name: Build feature tutorial run: msbuild ${{env.caliburn_tutorial}} /t:Build /p:Configuration=${{env.build_configuration}}