From ad95383878d89280959092215c120a8a29f4d664 Mon Sep 17 00:00:00 2001 From: Anichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com> Date: Tue, 22 Sep 2020 18:22:28 +0300 Subject: [PATCH] workflows/ci.yml: Overwrite cppcheck error code By default cppcheck returns 0 even if it encounters problems. Overwrite this with 1. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f48a810..1fa4dbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,4 +86,4 @@ jobs: - name: Install cppcheck run: sudo apt install -y cppcheck - name: Run cppcheck - run: cppcheck --language=c --enable=all -I inc/ -I inc/bdshemu -I bddisasm/include bddisasm/ bdshemu/ + run: cppcheck --error-exitcode=1 --language=c --enable=all -I inc/ -I inc/bdshemu -I bddisasm/include bddisasm/ bdshemu/