From a094c84eeb7cf5d5499e1a47f7df7bfb399107a5 Mon Sep 17 00:00:00 2001 From: potats0 <42128471+potats0@users.noreply.github.com> Date: Thu, 6 Jul 2023 16:32:30 +0800 Subject: [PATCH] Create CI.yml --- .github/workflows/CI.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..24f96c8 --- /dev/null +++ b/.github/workflows/CI.yml @@ -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