Skip to content

Commit

Permalink
Change CI to run staticcheck instead of golint
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeto committed Feb 10, 2022
1 parent ca7d545 commit 04aa1a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ jobs:
${{ runner.os }}-go-cache
- name: Run gofmt
run: gofmt -d -e . 2>&1 | tee outfile && test -z "$(cat outfile)" && rm outfile
- name: Run golint
- name: Run staticcheck
run: |
go install golang.org/x/lint/golint@latest
golint -set_exit_status ./...
cd _examples && golint -set_exit_status ./... && cd ..
go install honnef.co/go/tools/cmd/staticcheck
staticcheck ./...
- name: Run go vet
run: |
go vet ./...
Expand Down

0 comments on commit 04aa1a4

Please sign in to comment.