feat: add github workflow

This commit is contained in:
Zane Schaffer 2022-08-03 16:51:29 -07:00 committed by GitHub
parent 3e36454453
commit 145a34a48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

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

@ -0,0 +1,27 @@
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
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
check-latest: true
cache: true
- name: Build
run: go build -v .
- name: Vet
run: go vet .