From 0a7b49413921730bdc37f9c4cda54c10452e7ff5 Mon Sep 17 00:00:00 2001 From: Ayoub Zaki Date: Sun, 15 Dec 2024 15:20:29 +0100 Subject: [PATCH] github ci: add cppcheck --- .github/workflows/cmake-single-platform.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 708f010..28bfd97 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -23,7 +23,11 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies - run: sudo apt-get update && sudo apt-get --no-install-recommends install -y openssl libssl-dev python3 softhsm2 opensc libengine-pkcs11-openssl + run: sudo apt-get update && sudo apt-get --no-install-recommends install -y cppcheck openssl libssl-dev python3 softhsm2 opensc libengine-pkcs11-openssl + + - name: Cppcheck + run: cppcheck --enable=all --suppress=missingIncludeSystem *.cpp + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type