From 9cf058049c4a52f0c4d9009ffd0dfd5e87fe8627 Mon Sep 17 00:00:00 2001 From: 0gis0 Date: Sat, 28 Dec 2024 23:47:46 +0000 Subject: [PATCH] =?UTF-8?q?Add=20coverage=20report=20upload=20and=20summar?= =?UTF-8?q?y=20generation=20to=20CI=20workflow=20=F0=9F=93=8A=20This=20com?= =?UTF-8?q?mit=20message=20was=20generated=20by=20GitHub=20Copilot=20?= =?UTF-8?q?=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 024a928..9b85257 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,3 +33,16 @@ jobs: - name: Run tests with coverage run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura + + - name: Upload coverage report + uses: actions/upload-artifact@v3 + with: + name: coverage-report + path: src/coverage.cobertura.xml + + - name: Generate coverage summary + run: | + echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + cat src/coverage.cobertura.xml >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY \ No newline at end of file