Skip to content

Commit 377629b

Browse files
authored
Merge pull request #3379 from airween/v2/extendci
feat: add 'make test' to v2's workflow
2 parents 8881097 + 1514353 commit 377629b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,39 @@ jobs:
7474
- name: Show mod_security2 audit log
7575
if: always()
7676
run: sudo cat /var/log/apache2/modsec_audit.log
77+
78+
test-linux:
79+
runs-on: ${{ matrix.os }}
80+
strategy:
81+
matrix:
82+
os: [ubuntu-22.04]
83+
platform: [x32, x64]
84+
compiler: [gcc, clang]
85+
configure:
86+
- {label: "with pcre, no study, no jit", opt: "--enable-pcre-study=no" }
87+
- {label: "with pcre, with study, no jit", opt: "--enable-pcre-study=yes" }
88+
- {label: "with pcre, no study, with jit", opt: "--enable-pcre-study=no --enable-pcre-jit" }
89+
- {label: "with pcre, with study, with jit", opt: "--enable-pcre-study=yes --enable-pcre-jit" }
90+
- {label: "with pcre2", opt: "--with-pcre2 --enable-pcre-study=no" }
91+
- {label: "with pcre2, with study, no jit", opt: "--with-pcre2 --enable-pcre-study=yes" }
92+
- {label: "with pcre2, no study, with jit", opt: "--with-pcre2 --enable-pcre-study=no --enable-pcre-jit" }
93+
- {label: "with pcre2, with study, with jit", opt: "--with-pcre2 --enable-pcre-study=yes --enable-pcre-jit" }
94+
- {label: "with lua", opt: "--with-lua" }
95+
- {label: "wo lua", opt: "--without-lua" }
96+
steps:
97+
- name: Setup Dependencies
98+
run: |
99+
sudo apt-get update -y -qq
100+
sudo apt-get install -y --no-install-recommends apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev apache2 apache2-bin apache2-data
101+
- uses: actions/checkout@v2
102+
- name: autogen.sh
103+
run: ./autogen.sh
104+
- name: configure ${{ matrix.configure.label }}
105+
run: ./configure ${{ matrix.configure.opt }} 'CFLAGS=-Werror=format-security'
106+
- uses: ammaraskar/gcc-problem-matcher@master
107+
- name: make
108+
run: make -j `nproc`
109+
- name: install module
110+
run: sudo make install
111+
- name: run tests
112+
run: make test

0 commit comments

Comments
 (0)