-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
52 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: GetPageSpeed | ||
patreon: getpagespeed | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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,40 @@ | ||
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@v2 | ||
|
||
- name: Install build and test dependencies | ||
run: | | ||
sudo apt-get --yes update | ||
sudo apt-get install --yes libpcre3-dev libssl-dev perl cpanminus | ||
sudo pip install lastversion | ||
- name: Download NGINX | ||
run: | | ||
mkdir nginx && cd nginx && lastversion unzip nginx:${{ matrix.nginx-branch }} | ||
- 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 |