mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Having the QA on GitHub workflow
This commit is contained in:
parent
e6bdadeb69
commit
f948d637f2
77
.github/workflows/ci.yml
vendored
Normal file
77
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
name: Quality Assurance
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-linux:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-20.04]
|
||||||
|
platform: [x32, x64]
|
||||||
|
compiler: [gcc, clang]
|
||||||
|
configure:
|
||||||
|
- {label: "with parser generation", opt: "--enable-parser-generation" }
|
||||||
|
- {label: "without curl", opt: "--without-curl" }
|
||||||
|
- {label: "without yajl", opt: "--without-yajl" }
|
||||||
|
- {label: "without geoip", opt: "--without-geoip" }
|
||||||
|
- {label: "without lmdb", opt: "--without-lmdb" }
|
||||||
|
- {label: "without ssdeep", opt: "--without-ssdeep" }
|
||||||
|
- {label: "without lua", opt: "--without-lua" }
|
||||||
|
- {label: "without maxmind", opt: "--without-maxmind" }
|
||||||
|
steps:
|
||||||
|
- name: Setup Dependencies
|
||||||
|
run: |
|
||||||
|
sudo add-apt-repository --yes ppa:maxmind/ppa
|
||||||
|
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
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: build.sh
|
||||||
|
run: ./build.sh
|
||||||
|
- name: configure ${{ matrix.configure.label }}
|
||||||
|
run: ./configure ${{ matrix.configure.opt }}
|
||||||
|
- uses: ammaraskar/gcc-problem-matcher@master
|
||||||
|
- name: make
|
||||||
|
run: make -j `nproc`
|
||||||
|
- name: check
|
||||||
|
run: make check
|
||||||
|
- name: check-static
|
||||||
|
run: make check-static
|
||||||
|
|
||||||
|
build-macos:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-10.15, macos-11.0]
|
||||||
|
compiler: [gcc, clang]
|
||||||
|
configure:
|
||||||
|
- {label: "with parser generation", opt: "--enable-parser-generation" }
|
||||||
|
- {label: "without curl", opt: "--without-curl" }
|
||||||
|
- {label: "without yajl", opt: "--without-yajl" }
|
||||||
|
- {label: "without geoip", opt: "--without-geoip" }
|
||||||
|
- {label: "without lmdb", opt: "--without-lmdb" }
|
||||||
|
- {label: "without ssdeep", opt: "--without-ssdeep" }
|
||||||
|
- {label: "without lua", opt: "--without-lua" }
|
||||||
|
- {label: "without maxmind", opt: "--without-maxmind" }
|
||||||
|
steps:
|
||||||
|
- name: Setup Dependencies
|
||||||
|
run: |
|
||||||
|
brew install autoconf automake cppcheck lmdb libyaml lua ssdeep libmaxminddb
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: build.sh
|
||||||
|
run: ./build.sh
|
||||||
|
- name: configure ${{ matrix.configure.label }}
|
||||||
|
run: ./configure ${{ matrix.configure.opt }}
|
||||||
|
- uses: ammaraskar/gcc-problem-matcher@master
|
||||||
|
- name: make
|
||||||
|
run: make -j `nproc`
|
||||||
|
- name: check
|
||||||
|
run: make check
|
||||||
|
- name: check-static
|
||||||
|
run: make check-static
|
@ -44,14 +44,14 @@ functionStatic:src/engine/lua.h:71
|
|||||||
functionConst:src/utils/geo_lookup.h:49
|
functionConst:src/utils/geo_lookup.h:49
|
||||||
useInitializationList:src/operators/rbl.h:69
|
useInitializationList:src/operators/rbl.h:69
|
||||||
constStatement:test/common/modsecurity_test.cc:82
|
constStatement:test/common/modsecurity_test.cc:82
|
||||||
danglingTemporaryLifetime:src/modsecurity.cc:204
|
danglingTemporaryLifetime:src/modsecurity.cc:206
|
||||||
functionStatic:src/operators/geo_lookup.h:35
|
functionStatic:src/operators/geo_lookup.h:35
|
||||||
duplicateBreak:src/operators/validate_utf8_encoding.cc
|
duplicateBreak:src/operators/validate_utf8_encoding.cc
|
||||||
duplicateBranch:src/request_body_processor/multipart.cc:91
|
duplicateBranch:src/request_body_processor/multipart.cc:91
|
||||||
syntaxError:src/transaction.cc:62
|
syntaxError:src/transaction.cc:62
|
||||||
noConstructor:src/variables/variable.h:152
|
noConstructor:src/variables/variable.h:152
|
||||||
duplicateBranch:src/request_body_processor/multipart.cc:93
|
duplicateBranch:src/request_body_processor/multipart.cc:93
|
||||||
danglingTempReference:src/modsecurity.cc:204
|
danglingTempReference:src/modsecurity.cc:206
|
||||||
knownConditionTrueFalse:src/operators/validate_url_encoding.cc:77
|
knownConditionTrueFalse:src/operators/validate_url_encoding.cc:77
|
||||||
knownConditionTrueFalse:src/operators/verify_svnr.cc:87
|
knownConditionTrueFalse:src/operators/verify_svnr.cc:87
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user