-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds go.yml * Fixes spacing issue in yaml. * Attempts to fix path issue. * Try this on for size. * One command per target.
- Loading branch information
1 parent
ef3a391
commit efa3b03
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Go | ||
on: [push] | ||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.12 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.12 | ||
id: go | ||
|
||
- name: go get golint | ||
run: go get -u golang.org/x/lint/golint | ||
|
||
- name: go get staticcheck | ||
run: go get -u honnef.co/go/tools/cmd/staticcheck | ||
|
||
- name: git clone | ||
uses: actions/checkout@v1 | ||
|
||
- name: go fmt | ||
run: test -z $(go fmt ./...) | ||
|
||
- name: go get | ||
run: go get -v -t -d ./... | ||
|
||
- name: golint | ||
run: $(go env GOPATH)/bin/golint -set_exit_status | ||
|
||
- name: staticcheck | ||
run: $(go env GOPATH)/bin/staticcheck ./... | ||
|
||
- name: go build | ||
run: go build -race -v ./... | ||
|
||
- name: go test | ||
run: go test -cover -race ./... |