From 636cf43d5e6ba1561e76d32e20e4785e9e43d8ab Mon Sep 17 00:00:00 2001 From: Eduardo Arias Date: Sun, 5 May 2024 13:25:46 -0300 Subject: [PATCH] Separate workflow to run check-static (cppcheck) build step --- .github/workflows/ci.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a870a58..5918fab9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Dependencies run: | sudo apt-get update -y -qq - sudo apt-get install -y libfuzzy-dev libyajl-dev libgeoip-dev liblua5.2-dev liblmdb-dev cppcheck libmaxminddb-dev libcurl4-openssl-dev libpcre2-dev pcre2-utils + sudo apt-get install -y libfuzzy-dev libyajl-dev libgeoip-dev liblua5.2-dev liblmdb-dev libmaxminddb-dev libcurl4-openssl-dev libpcre2-dev pcre2-utils - uses: actions/checkout@v2 with: submodules: true @@ -38,8 +38,6 @@ jobs: run: make -j `nproc` - name: check run: make check - - name: check-static - run: make check-static build-macos: runs-on: ${{ matrix.os }} @@ -125,3 +123,21 @@ jobs: working-directory: build\win32\build run: | ctest -C ${{ matrix.configuration }} --output-on-failure + + cppcheck: + runs-on: [ubuntu-22.04] + steps: + - name: Setup Dependencies + run: | + sudo apt-get update -y -qq + sudo apt-get install -y cppcheck + - name: Get libModSecurity v3 source + uses: actions/checkout@v4 + with: + submodules: true + - name: Configure libModSecurity + run: | + ./build.sh + ./configure + - name: Run cppcheck on libModSecurity + run: make check-static \ No newline at end of file