fixup! add: functional tests
This commit is contained in:
parent
9115a27c05
commit
d29caf3e01
1 changed files with 14 additions and 9 deletions
23
.github/workflows/nginx-otel-build.yml
vendored
23
.github/workflows/nginx-otel-build.yml
vendored
|
|
@ -7,10 +7,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install dependecies
|
- name: Install system dependecies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt install -y mercurial cmake \
|
sudo apt-get update && sudo apt install -y mercurial cmake \
|
||||||
libc-ares-dev libre2-dev libssl-dev zlib1g-dev curl
|
libc-ares-dev libre2-dev libssl-dev zlib1g-dev
|
||||||
- name: Checkout and build nginx
|
- name: Checkout and build nginx
|
||||||
run: |
|
run: |
|
||||||
hg clone http://hg.nginx.org/nginx/ && cd nginx && \
|
hg clone http://hg.nginx.org/nginx/ && cd nginx && \
|
||||||
|
|
@ -39,17 +39,22 @@ jobs:
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: nginx-otel-module-stuff
|
name: nginx-otel-module-stuff
|
||||||
- run: |
|
- name: Install system dependecies
|
||||||
sudo apt-get update && sudo apt install -y mercurial cmake \
|
run: sudo apt-get update && sudo apt install -y mercurial curl
|
||||||
libc-ares-dev libre2-dev libssl-dev zlib1g-dev curl
|
- name: Install perl modules
|
||||||
- run: sudo cpan IO::Socket::SSL
|
run: sudo cpan IO::Socket::SSL
|
||||||
- run: |
|
- name: Download otelcol
|
||||||
|
run: |
|
||||||
curl -LO https://github.com/\
|
curl -LO https://github.com/\
|
||||||
open-telemetry/opentelemetry-collector-releases/releases/download/\
|
open-telemetry/opentelemetry-collector-releases/releases/download/\
|
||||||
v0.76.1/otelcol_0.76.1_linux_amd64.tar.gz && \
|
v0.76.1/otelcol_0.76.1_linux_amd64.tar.gz && \
|
||||||
tar -xzf otelcol_0.76.1_linux_amd64.tar.gz
|
tar -xzf otelcol_0.76.1_linux_amd64.tar.gz
|
||||||
- run: hg clone http://hg.nginx.org/nginx-tests/
|
- name: Checkout nginx-test
|
||||||
- run: |
|
run: hg clone http://hg.nginx.org/nginx-tests/
|
||||||
|
- name: List files before tests
|
||||||
|
run: ls -lR .
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
cd tests && PERL5LIB=../nginx-tests/lib TEST_NGINX_UNSAFE=1 \
|
cd tests && PERL5LIB=../nginx-tests/lib TEST_NGINX_UNSAFE=1 \
|
||||||
TEST_NGINX_VERBOSE=1 TEST_NGINX_BINARY=../nginx/objs/nginx \
|
TEST_NGINX_VERBOSE=1 TEST_NGINX_BINARY=../nginx/objs/nginx \
|
||||||
TEST_NGINX_GLOBALS="load_module \
|
TEST_NGINX_GLOBALS="load_module \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue