Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
via GitHub Actions
  • Loading branch information
dvershinin committed Nov 20, 2022
1 parent 8e27bfd commit dd4a39e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
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']
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
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

0 comments on commit dd4a39e

Please sign in to comment.