Skip to content

Commit 9ee27b5

Browse files
committed
Add github action to test nginx with wolfProvider
1 parent ec27f8e commit 9ee27b5

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/nginx.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Nginx Tests
2+
3+
# START OF COMMON SECTION
4+
on:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
14+
15+
jobs:
16+
test_nginx:
17+
runs-on: ubuntu-latest
18+
# This should be a safe limit for the tests to run.
19+
timeout-minutes: 20
20+
steps:
21+
- name: Checkout wolfProvider
22+
uses: actions/checkout@v4
23+
24+
- name: Build wolfProvider
25+
run: |
26+
OPENSSL_TAG=master WOLFSSL_TAG=master ./scripts/build-wolfprovider.sh
27+
make check
28+
29+
- name: Print errors
30+
if: ${{ failure() }}
31+
run: |
32+
if [ -f test-suite.log ] ; then
33+
cat test-suite.log
34+
fi
35+
36+
- name: Install nginx dependencies
37+
run: |
38+
sudo cpan -iT Proc::Find Net::SSLeay IO::Socket::SSL
39+
40+
- name: Build nginx
41+
uses: wolfSSL/actions-build-autotools-project@v1
42+
with:
43+
repository: nginx/nginx
44+
path: nginx
45+
ref: release-1.27.4
46+
configure: --with-http_ssl_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --with-mail --with-mail_ssl_module
47+
check: false
48+
49+
- name: Checkout nginx-tests
50+
uses: actions/checkout@v4
51+
with:
52+
repository: nginx/nginx-tests
53+
path: nginx-tests
54+
ref: master
55+
56+
- name: Run nginx-tests with wolfProvider
57+
working-directory: nginx-tests
58+
run: |
59+
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/wolfssl-install/lib:$GITHUB_WORKSPACE/openssl-install/lib64
60+
export OPENSSL_CONF=$GITHUB_WORKSPACE/provider.conf
61+
export OPENSSL_MODULES=$GITHUB_WORKSPACE/wolfprov-install/lib
62+
TEST_NGINX_VERBOSE=y TEST_NGINX_CATLOG=y TEST_NGINX_BINARY=../nginx/objs/nginx prove -v .

0 commit comments

Comments
 (0)