-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create CI build workflow and optimize ETag module
Add a GitHub Actions CI workflow for building and testing NGINX modules. In the ETag module, skip processing if the request has no upstream to improve efficiency.
- Loading branch information
1 parent
394ab89
commit 35473b5
Showing
3 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
community_bridge: null | ||
custom: | ||
- https://paypal.me/dvershinin | ||
github: dvershinin | ||
issuehunt: null | ||
ko_fi: null | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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 |
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