2020-02-29 11:18:25 +00:00
|
|
|
name: go
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: set up go
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.13
|
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: check out
|
|
|
|
uses: actions/checkout@v2
|
2020-02-29 11:22:18 +00:00
|
|
|
|
2020-02-29 11:25:23 +00:00
|
|
|
- name: deps
|
|
|
|
run: go get -v -t -d ./...
|
2020-02-29 11:18:25 +00:00
|
|
|
|
|
|
|
- name: vet and build
|
|
|
|
run: go vet ./... && go build
|