mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
feat: add 'make test' to v2's workflow
This commit is contained in:
parent
888109736b
commit
0710feb06c
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
@ -74,3 +74,39 @@ jobs:
|
||||
- name: Show mod_security2 audit log
|
||||
if: always()
|
||||
run: sudo cat /var/log/apache2/modsec_audit.log
|
||||
|
||||
test-linux:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-22.04]
|
||||
platform: [x32, x64]
|
||||
compiler: [gcc, clang]
|
||||
configure:
|
||||
- {label: "with pcre, no study, no jit", opt: "--enable-pcre-study=no" }
|
||||
- {label: "with pcre, with study, no jit", opt: "--enable-pcre-study=yes" }
|
||||
- {label: "with pcre, no study, with jit", opt: "--enable-pcre-study=no --enable-pcre-jit" }
|
||||
- {label: "with pcre, with study, with jit", opt: "--enable-pcre-study=yes --enable-pcre-jit" }
|
||||
- {label: "with pcre2", opt: "--with-pcre2 --enable-pcre-study=no" }
|
||||
- {label: "with pcre2, with study, no jit", opt: "--with-pcre2 --enable-pcre-study=yes" }
|
||||
- {label: "with pcre2, no study, with jit", opt: "--with-pcre2 --enable-pcre-study=no --enable-pcre-jit" }
|
||||
- {label: "with pcre2, with study, with jit", opt: "--with-pcre2 --enable-pcre-study=yes --enable-pcre-jit" }
|
||||
- {label: "with lua", opt: "--with-lua" }
|
||||
- {label: "wo lua", opt: "--without-lua" }
|
||||
steps:
|
||||
- name: Setup Dependencies
|
||||
run: |
|
||||
sudo apt-get update -y -qq
|
||||
sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev apache2 apache2-bin apache2-data
|
||||
- uses: actions/checkout@v2
|
||||
- name: autogen.sh
|
||||
run: ./autogen.sh
|
||||
- name: configure ${{ matrix.configure.label }}
|
||||
run: ./configure ${{ matrix.configure.opt }} 'CFLAGS=-Werror=format-security'
|
||||
- uses: ammaraskar/gcc-problem-matcher@master
|
||||
- name: make
|
||||
run: make -j `nproc`
|
||||
- name: install module
|
||||
run: sudo make install
|
||||
- name: run tests
|
||||
run: make test
|
||||
|
Loading…
x
Reference in New Issue
Block a user