Create CI.yml

This commit is contained in:
potats0 2023-07-06 16:32:30 +08:00 committed by GitHub
parent 81616871e9
commit a094c84eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

31
.github/workflows/CI.yml vendored Normal file
View 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