mirror of
https://github.com/potats0/lua-resty-coraza.git
synced 2025-06-28 17:41:00 +03:00
Create CI.yml
This commit is contained in:
parent
81616871e9
commit
a094c84eeb
31
.github/workflows/CI.yml
vendored
Normal file
31
.github/workflows/CI.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: 1.15
|
||||||
|
|
||||||
|
- name: Install build dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install -y openresty
|
||||||
|
|
||||||
|
- name: Build and Install
|
||||||
|
run: |
|
||||||
|
cd coraza
|
||||||
|
./build.sh configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: |
|
||||||
|
cd test
|
||||||
|
prove -t
|
Loading…
x
Reference in New Issue
Block a user