Skip to content

Commit

Permalink
Add GOPATH/bin to PATH
Browse files Browse the repository at this point in the history
As stated in this issue, you can't run tools installed using go get without first updating $PATH.
actions/setup-go#14

Also add -set_exit_status to make golint return 1 if any issues are found.
https://github.com/golang/lint/blob/master/golint/golint.go#L24
  • Loading branch information
jakewright authored Sep 24, 2019
1 parent a893b96 commit db22f90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
- name: Run static analysis
run: |
go vet ./...
export PATH=$PATH:$(go env GOPATH)/bin
go get -u golang.org/x/lint/golint
golint ./...
golint -set_exit_status ./...
test:
Expand Down

0 comments on commit db22f90

Please sign in to comment.