Refactor coverage report generation in GitHub Actions workflow

This commit is contained in:
Hoshiumi Arata
2024-11-18 23:56:55 +09:00
parent fbcc6cf255
commit 7cf5e9b0af
+6 -4
View File
@@ -26,10 +26,12 @@ jobs:
run: pip install gcovr
- name: Generate coverage report
run: |
echo "# Coverage report" > $GITHUB_STEP_SUMMARY
echo \`\`\` >> $GITHUB_STEP_SUMMARY
gcovr -e ".*_test.c" -e ".*/test/.*" -s --html-details -o coverage/ build >> $GITHUB_STEP_SUMMARY
echo \`\`\` >> $GITHUB_STEP_SUMMARY
{
echo "# Coverage report"
echo \`\`\`
gcovr -e ".*_test.c" -e ".*/test/.*" -s --html-details -o coverage/ build
echo \`\`\`
} > $GITHUB_STEP_SUMMARY
- name: Upload coverage report
uses: actions/upload-artifact@v4
with: