mirror of
https://github.com/potats0/lua-resty-coraza.git
synced 2025-06-28 17:41:00 +03:00
Update CI.yml
This commit is contained in:
parent
a094c84eeb
commit
e539a2312c
19
.github/workflows/CI.yml
vendored
19
.github/workflows/CI.yml
vendored
@ -8,15 +8,12 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@master
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.20.4
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y openresty
|
|
||||||
|
|
||||||
- name: Build and Install
|
- name: Build and Install
|
||||||
run: |
|
run: |
|
||||||
@ -24,8 +21,10 @@ jobs:
|
|||||||
./build.sh configure
|
./build.sh configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
- name: Setup openresty
|
||||||
|
- uses: leafo/gh-actions-openresty@v1
|
||||||
|
with:
|
||||||
|
openrestyVersion: "1.21.4.1"
|
||||||
|
|
||||||
- name: Run Tests
|
- name: run test::Nginx
|
||||||
run: |
|
run: resty -e 'print("hi from lua")'
|
||||||
cd test
|
|
||||||
prove -t
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user