From 2ed692bee996ebde3c22238b70844cde823891c5 Mon Sep 17 00:00:00 2001 From: kminoda Date: Thu, 6 Jun 2024 22:04:15 +0900 Subject: [PATCH] revert final job and rename to cppcheck-daily Signed-off-by: kminoda --- .../{cppcheck-monitor.yaml => cppcheck-daily.yaml} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename .github/workflows/{cppcheck-monitor.yaml => cppcheck-daily.yaml} (89%) diff --git a/.github/workflows/cppcheck-monitor.yaml b/.github/workflows/cppcheck-daily.yaml similarity index 89% rename from .github/workflows/cppcheck-monitor.yaml rename to .github/workflows/cppcheck-daily.yaml index 1c18b8f105551..cd095e88f2acc 100644 --- a/.github/workflows/cppcheck-monitor.yaml +++ b/.github/workflows/cppcheck-daily.yaml @@ -1,4 +1,4 @@ -name: cppcheck-monitor +name: cppcheck-daily on: schedule: @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - cppcheck-monitor: + cppcheck-daily: runs-on: ubuntu-latest steps: @@ -33,6 +33,7 @@ jobs: - name: Run Cppcheck on all files continue-on-error: true + id: cppcheck run: | cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --xml . 2> cppcheck-report.xml shell: bash @@ -52,3 +53,7 @@ jobs: with: name: cppcheck-report path: cppcheck-report.xml + + - name: Fail the job if Cppcheck failed + if: steps.cppcheck.outcome == 'failure' + run: exit 1 \ No newline at end of file