Skip to content

Commit b125e44

Browse files
committed
GitHub actions
1 parent 5f5a189 commit b125e44

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)