From d68341c4e2c5d8438fe208f11461fd96299fe905 Mon Sep 17 00:00:00 2001 From: David Howden Date: Sat, 18 Jun 2022 09:22:08 +1000 Subject: [PATCH] Add go.yaml to trigger actions on pull requests (#84) --- .github/workflows/go.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..f89f878 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,26 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + cache: true + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...