mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Separate workflow to run check-static (cppcheck) build step
This commit is contained in:
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- name: Setup Dependencies
|
- name: Setup Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y -qq
|
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
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
@@ -38,8 +38,6 @@ jobs:
|
|||||||
run: make -j `nproc`
|
run: make -j `nproc`
|
||||||
- name: check
|
- name: check
|
||||||
run: make check
|
run: make check
|
||||||
- name: check-static
|
|
||||||
run: make check-static
|
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -125,3 +123,21 @@ jobs:
|
|||||||
working-directory: build\win32\build
|
working-directory: build\win32\build
|
||||||
run: |
|
run: |
|
||||||
ctest -C ${{ matrix.configuration }} --output-on-failure
|
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
|
Reference in New Issue
Block a user