mirror of
https://github.com/sony/sonyflake.git
synced 2026-11-22 08:06:28 +00:00
Introduce staticcheck
This commit is contained in:
1 parent
6ff253cccd
commit
8cab4fa3ea
2 files changed
+20
-2
No files matched your search
@@ -33,8 +33,17 @@ jobs:
|
|||||||
- name: gofmt
|
- name: gofmt
|
||||||
run: test -z "`gofmt -l .`"
|
run: test -z "`gofmt -l .`"
|
||||||
|
|
||||||
|
- name: Install golint
|
||||||
|
run: go install golang.org/x/lint/golint@latest
|
||||||
|
|
||||||
- name: golint
|
- name: golint
|
||||||
run: test -z "`golint ./...`"
|
run: test -z "`$(go env GOPATH)/bin/golint ./...`"
|
||||||
|
|
||||||
|
- name: Install staticcheck
|
||||||
|
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
|
|
||||||
|
- name: staticcheck
|
||||||
|
run: $(go env GOPATH)/bin/staticcheck ./...
|
||||||
|
|
||||||
- name: go test
|
- name: go test
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|||||||
@@ -39,8 +39,17 @@ jobs:
|
|||||||
- name: gofmt
|
- name: gofmt
|
||||||
run: test -z "`gofmt -l .`"
|
run: test -z "`gofmt -l .`"
|
||||||
|
|
||||||
|
- name: Install golint
|
||||||
|
run: go install golang.org/x/lint/golint@latest
|
||||||
|
|
||||||
- name: golint
|
- name: golint
|
||||||
run: test -z "`golint ./...`"
|
run: test -z "`$(go env GOPATH)/bin/golint ./...`"
|
||||||
|
|
||||||
|
- name: Install staticcheck
|
||||||
|
run: go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
|
|
||||||
|
- name: staticcheck
|
||||||
|
run: $(go env GOPATH)/bin/staticcheck ./...
|
||||||
|
|
||||||
- name: Build example
|
- name: Build example
|
||||||
run: cd example && ./linux64_build.sh
|
run: cd example && ./linux64_build.sh
|
||||||
Reference in new issue
Block a user