File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test Build
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+ strategy :
10+ max-parallel : 2
11+ matrix :
12+ nginx-branch : [stable, mainline]
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Install build and test dependencies
16+ run : |
17+ sudo apt-get --yes update
18+ sudo apt-get install --yes libpcre3-dev libssl-dev perl cpanminus
19+ sudo pip install lastversion
20+ - name : Download NGINX
21+ run : |
22+ mkdir nginx && cd nginx && lastversion unzip nginx:${{ matrix.nginx-branch }}
23+ - name : Configure NGINX to compile with the module statically
24+ run : |
25+ cd nginx && ./configure --with-debug --add-module=..
26+ - name : Make NGINX
27+ run : |
28+ cd nginx && make -j$(nproc)
29+ - name : Test the module
30+ run : |
31+ PATH=$(pwd)/nginx/objs:$PATH cpanm --notest --local-lib=$HOME/perl5 Test::Nginx
32+ - name : Test the module 2
33+ PERL5LIB=$HOME/perl5/lib/perl5 TEST_NGINX_VERBOSE=true prove -v
You can’t perform that action at this time.
0 commit comments