From fbd096baa0941fd0e3d03fefce6b71ea3ae6e59b Mon Sep 17 00:00:00 2001 From: Ayoub Zaki Date: Sun, 15 Dec 2024 13:41:53 +0100 Subject: [PATCH] add cppcheck in github pipeline --- .github/workflows/cmake-single-platform.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 440a78b..81557b3 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -23,7 +23,10 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies - run: sudo apt-get update && sudo apt-get install -y bmap-tools libssl-dev libxml2-dev zlib1g-dev liblzma-dev + run: sudo apt-get update && sudo apt-get install -y bmap-tools libssl-dev libxml2-dev zlib1g-dev liblzma-dev cppcheck + + - 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.