Skip to content

v0.1.0

v0.1.0 #19

Workflow file for this run

name: Test Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
nginx-branch: [stable, mainline]
steps:
- uses: actions/checkout@v3
- name: Install build and test dependencies
run: |
sudo apt-get --yes update
sudo apt-get install --yes libpcre3-dev libssl-dev perl cpanminus
- name: Create NGINX download directory
run: mkdir nginx
- name: Download ${{ matrix.nginx-branch }} NGINX
uses: dvershinin/lastversion-action@main
with:
repository: 'nginx'
action: 'unzip'
branch: ${{ matrix.nginx-branch }}
working_directory: ./nginx
- name: Configure NGINX to compile with the module statically
run: |
cd nginx && ./configure --with-debug --add-module=..
- name: Make NGINX
run: |
cd nginx && make -j$(nproc)
- name: Ensure Test::Nginx installed
run: |
cpanm --notest --local-lib=$HOME/perl5 Test::Nginx
- name: Test the module
run: |
PATH=$(pwd)/nginx/objs:$PATH PERL5LIB=$HOME/perl5/lib/perl5 TEST_NGINX_VERBOSE=true prove -v