Update CI.yml #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@master | |
- name: Setup Go | |
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: Install build dependencies | |
run: | | |
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 | |
with: | |
openrestyVersion: "1.21.4.1" | |
- name: run test::Nginx | |
run: | | |
export PATH=/usr/local/openresty/nginx/sbin:$PATH | |
openresty -v | |
prove -t |