-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (38 loc) · 974 Bytes
/
nginx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: lua ca bouncer nginx test
on:
push:
branches:
- main
- releases/**
pull_request:
branches:
- main
- releases/**
jobs:
tests:
runs-on: ubuntu-latest
name: "Nginx test suite"
container:
image: debian:latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false
- name: "install nginx & nginx perl test suite"
run: |
cat /etc/os-release
apt-get update
apt-get install -y make gcc nginx libnginx-mod-http-lua perl ca-certificates luarocks
luarocks install lua-cjson 2.1.0.10-1
luarocks install lua-resty-http 0.17.1-0
cpan Test::Nginx
cpan Test::Nginx::Socket
echo "Installation done"
- name: "Run tests"
run: |
export PERL5LIB=/root/.cpan/build/Test-Nginx-0.30-3/blib/lib
for i in t/*.t; do
prove $i ;
done