From 32e242250e8a1fdd8457d82fe79df6db6170d2ef Mon Sep 17 00:00:00 2001 From: Dillon Lees Date: Tue, 2 Aug 2022 17:02:05 -0400 Subject: [PATCH] build: update build workflow --- .github/workflows/build.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3e523f..cad28af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,30 @@ name: Build on: - - push - - pull_request + push: + branches: [ main ] + pull_request: + branches: [ main ] jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v3 + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version-file: go.mod + check-latest: true + cache: true + + - name: Test + run: go test ./... + build: runs-on: ubuntu-latest defaults: