Introduce golangci-lint

This commit is contained in:
Yoshiyuki Mineo committed 2025-05-02 01:27:00 +09:00
1 parent 8cab4fa3ea
commit bdd4a37407
2 files changed
+11 -29

No files matched your search

+5 -14
View File
@@ -30,22 +30,13 @@ jobs:
with:
go-version: ${{matrix.go-version}}
- name: gofmt
- name: Lint Code
uses: golangci/golangci-lint-action@v6
- name: Check format
run: test -z "`gofmt -l .`"
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: 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: Run tests
run: go test -v ./...
- name: Build example