Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to GitHub Actions. #14

Merged
merged 5 commits into from
Aug 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/go.yml
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 ./...