mirror of
https://github.com/potats0/lua-resty-coraza.git
synced 2025-06-28 17:41:00 +03:00
40 lines
776 B
YAML
40 lines
776 B
YAML
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
|
|
ref: refs/heads/release
|
|
|
|
- name: Build and Install
|
|
run: |
|
|
cd coraza
|
|
./build.sh
|
|
./configure
|
|
make
|
|
sudo make install
|
|
|
|
- name: Setup openresty
|
|
uses: leafo/gh-actions-openresty@v1
|
|
with:
|
|
openrestyVersion: "1.21.4.1"
|
|
|
|
- name: run test::Nginx
|
|
run: resty -e 'print("hi from lua")'
|