From 4713dd7f92ca67687a44b555d9370e97affc48c2 Mon Sep 17 00:00:00 2001 From: jordanbreen28 <112936862+jordanbreen28@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:27:20 +0100 Subject: [PATCH] Add CI workflow on PR and nightly --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..7c3b7ad --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: ci + +on: + pull_request: + branches: + - main + schedule: + - cron: '0 0 * * *' + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...