Merge pull request #19 from weirdtales/master
add github action: vet and build
This commit is contained in:
commit
306651df1f
1 changed files with 24 additions and 0 deletions
24
.github/workflows/vet-and-build.yml
vendored
Normal file
24
.github/workflows/vet-and-build.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: vet-and-build
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: set up
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: 1.13
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- name: check out
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: deps
|
||||||
|
run: go get -v -t -d ./...
|
||||||
|
|
||||||
|
- name: vet
|
||||||
|
run: go vet ./...
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
run: go build
|
Loading…
Reference in a new issue