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