Skip to content

Commit

Permalink
Migrate to GitHub Actions. (#14)
Browse files Browse the repository at this point in the history
* 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
ryanjoneil authored Aug 28, 2019
1 parent ef3a391 commit efa3b03
Showing 1 changed file with 41 additions and 0 deletions.
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 ./...

0 comments on commit efa3b03

Please sign in to comment.