Skip to content

Commit

Permalink
fix: cppcheck report can now be on multiple lines in static analysis …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
SuperFola committed Apr 17, 2024
1 parent 2bee12e commit 3bd259f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
shell: bash
run: |
cppcheck --platform=unix64 --template="{file}:{line}: {severity}: {message}" \
--output-file=cppcheck.txt -j $(nproc) \
--output-file=cppcheck.txt \
-I include src \
--enable=all --inline-suppr \
--suppressions-list=cppcheck-suppressions.txt
cat cppcheck.txt | sort > cppcheck_sorted.txt
echo "report=$(cat cppcheck_sorted.txt)" >> $GITHUB_OUTPUT
echo "CPPCHECK_REPORT<<EOF" >> $GITHUB_ENV
cat cppcheck_sorted.txt >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Find Comment
uses: peter-evans/find-comment@v3
Expand All @@ -60,6 +62,6 @@ jobs:
### CppCheck report
```
${{ steps.cppcheck.outputs.report }}
${{ env.CPPCHECK_REPORT }}
```
edit-mode: replace

0 comments on commit 3bd259f

Please sign in to comment.