Skip to content

Commit e0883f9

Browse files
committed
Add regression test to GH workflof
1 parent 02da85b commit e0883f9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,31 @@ jobs:
110110
run: sudo make install
111111
- name: run tests
112112
run: make test
113+
114+
test-regression-linux:
115+
runs-on: ${{ matrix.os }}
116+
strategy:
117+
matrix:
118+
os: [ubuntu-22.04]
119+
platform: [x32, x64]
120+
compiler: [gcc, clang]
121+
configure:
122+
- {label: "with pcre2, with study, with jit", opt: "--enable-pcre-study=yes --enable-pcre-jit" }
123+
- {label: "with pcre, with study, with jit", opt: "--with-pcre --enable-pcre-study=yes --enable-pcre-jit" }
124+
steps:
125+
- name: Setup Dependencies
126+
run: |
127+
sudo apt-get update -y -qq
128+
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 perl libwww-perl
129+
- uses: actions/checkout@v2
130+
- name: autogen.sh
131+
run: ./autogen.sh
132+
- name: configure ${{ matrix.configure.label }}
133+
run: ./configure ${{ matrix.configure.opt }} 'CFLAGS=-Werror=format-security'
134+
- uses: ammaraskar/gcc-problem-matcher@master
135+
- name: make
136+
run: make -j `nproc`
137+
- name: install module
138+
run: sudo make install
139+
- name: run regression tests
140+
run: make test-regression

0 commit comments

Comments
 (0)