Create go.yml

This commit is contained in:
Andrew Gillis 2021-05-08 16:35:10 -07:00
parent be20709541
commit 1dfe35d318

33
.github/workflows/go.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Vet
run: go vet ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
files: coverage.txt