File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 2222 - name : Determine Version
2323 uses :
gittools/actions/gitversion/[email protected] 2424 id : gitversion
25- with :
26- useConfigFile : true
2725
2826 - name : Display GitVersion outputs
2927 run : |
5048 with :
5149 reports : ' coverage/**/coverage.cobertura.xml'
5250 targetdir : ' coverage-report'
53- reporttypes : ' Html;Cobertura'
51+ reporttypes : ' Html;Cobertura;TextSummary'
52+
53+ - name : Display Code Coverage Summary
54+ run : |
55+ echo "## 📊 Code Coverage Summary" >> $GITHUB_STEP_SUMMARY
56+ if [ -f "coverage-report/Summary.txt" ]; then
57+ echo '```' >> $GITHUB_STEP_SUMMARY
58+ cat coverage-report/Summary.txt >> $GITHUB_STEP_SUMMARY
59+ echo '```' >> $GITHUB_STEP_SUMMARY
60+ echo "### Build Log Coverage Summary:"
61+ cat coverage-report/Summary.txt
62+ else
63+ echo "⚠️ Coverage summary file not found"
64+ echo "⚠️ Coverage summary file not found" >> $GITHUB_STEP_SUMMARY
65+ fi
5466
5567 - name : Create NuGet package
5668 working-directory : src
You can’t perform that action at this time.
0 commit comments