Update CI.yml

This commit is contained in:
potats0 2023-07-06 16:42:30 +08:00 committed by potatso
parent d8141d8ea5
commit 5c5b73e3af

View File

@ -15,12 +15,21 @@ jobs:
with:
go-version: 1.20.4
- name: Build and Install
- name: Clone libcoraza-nginx repository
uses: actions/checkout@v2
with:
repository: potats0/coraza
path: libcoraza
- name: Install build dependencies
run: |
cd coraza
./build.sh configure
cd libcoraza
./build.sh
./configure
make
sudo make install
sudo cpan -T Test::Nginx
sudo cpan -T Test::Nginx::Socket
- name: Setup openresty
uses: leafo/gh-actions-openresty@v1
@ -28,4 +37,7 @@ jobs:
openrestyVersion: "1.21.4.1"
- name: run test::Nginx
run: resty -e 'print("hi from lua")'
run: |
export PATH=/usr/local/openresty/nginx/sbin:$PATH
openresty -v
prove -t