Skip to content

Commit 6efece7

Browse files
CI: Print to job summary the cppcheck output. (#77)
1 parent 8269196 commit 6efece7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/cppcheck.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
run: |
3030
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .
3131
cppcheck --project=compile_commands.json --std=c++11 2> cppcheck.log
32+
- name: Add CppCheck result to job summary
33+
run: |
34+
echo "## Cppcheck output" >> $GITHUB_STEP_SUMMARY
35+
echo '```' >> $GITHUB_STEP_SUMMARY
36+
echo "$(cat cppcheck.log)" >> $GITHUB_STEP_SUMMARY
37+
echo '```' >> $GITHUB_STEP_SUMMARY
3238
- name: Upload log file
3339
uses: actions/upload-artifact@v1
3440
with:

0 commit comments

Comments
 (0)