From e081c44f9ff23968ddae2ce6ba26ad61933fc7ef Mon Sep 17 00:00:00 2001 From: Ealianis Date: Wed, 12 Jan 2022 13:36:53 -0800 Subject: [PATCH] CICD : Added workflow for building main branch Workflow to build branch 'main' after PR or Push, and every weekday at 02:00 UTC. --- .github/workflows/builds.main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/builds.main.yml diff --git a/.github/workflows/builds.main.yml b/.github/workflows/builds.main.yml new file mode 100644 index 00000000..8e47fc06 --- /dev/null +++ b/.github/workflows/builds.main.yml @@ -0,0 +1,24 @@ +name: Go + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: "0 2 * * 1-5" + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Build + run: go build -v ./...