mirror of
https://github.com/sony/sonyflake.git
synced 2026-02-07 08:40:41 +00:00
Introduce staticcheck
This commit is contained in:
11
.github/workflows/test-v1.yml
vendored
11
.github/workflows/test-v1.yml
vendored
@@ -33,8 +33,17 @@ jobs:
|
||||
- name: gofmt
|
||||
run: test -z "`gofmt -l .`"
|
||||
|
||||
- name: Install golint
|
||||
run: go install golang.org/x/lint/golint@latest
|
||||
|
||||
- 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
|
||||
run: go test -v ./...
|
||||
|
||||
11
.github/workflows/test-v2.yml
vendored
11
.github/workflows/test-v2.yml
vendored
@@ -39,8 +39,17 @@ jobs:
|
||||
- name: gofmt
|
||||
run: test -z "`gofmt -l .`"
|
||||
|
||||
- name: Install golint
|
||||
run: go install golang.org/x/lint/golint@latest
|
||||
|
||||
- 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
|
||||
run: cd example && ./linux64_build.sh
|
||||
|
||||
Reference in New Issue
Block a user