From 330ceb8a9e72b47e6410db71cecb36efa6e2274c Mon Sep 17 00:00:00 2001 From: kminoda Date: Tue, 4 Jun 2024 21:20:05 +0900 Subject: [PATCH] modify to show cppcheck result even when failure Signed-off-by: kminoda --- .github/workflows/cppcheck-differential.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cppcheck-differential.yaml b/.github/workflows/cppcheck-differential.yaml index 4939135ffe1b5..fb8ad384f3885 100644 --- a/.github/workflows/cppcheck-differential.yaml +++ b/.github/workflows/cppcheck-differential.yaml @@ -45,11 +45,15 @@ jobs: echo "Running Cppcheck on changed files: $files" cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 $files 2> cppcheck-report.txt # cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions $files 2> cppcheck-report.txt - cat cppcheck-report.txt else echo "No C++ files changed." + touch cppcheck-report.txt fi shell: bash + + - name: Show cppcheck-report result + run: | + cat cppcheck-report.txt - name: Upload Cppcheck report uses: actions/upload-artifact@v2