Add go.yaml to trigger actions on pull requests (#84)

This commit is contained in:
David Howden 2022-06-18 09:22:08 +10:00 committed by GitHub
parent c3f9cefce8
commit d68341c4e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
.github/workflows/go.yml vendored Normal file
View File

@ -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 ./...