From 5c5b73e3af460d784ce50f6daf722935be798aaf Mon Sep 17 00:00:00 2001 From: potats0 <42128471+potats0@users.noreply.github.com> Date: Thu, 6 Jul 2023 16:42:30 +0800 Subject: [PATCH] Update CI.yml --- .github/workflows/CI.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b4de1f3..385c6d8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,13 +14,22 @@ jobs: uses: actions/setup-go@master with: go-version: 1.20.4 + + - name: Clone libcoraza-nginx repository + uses: actions/checkout@v2 + with: + repository: potats0/coraza + path: libcoraza - - name: Build and Install + - 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