Merge pull request #22 from kosmas-valianos/hsts #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |