mirror of
https://github.com/planetmint/planetmint-go.git
synced 2026-03-17 21:58:37 +00:00
[lint] Switch to golangci-lint and fix errors
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
9
.github/workflows/audit.yaml
vendored
9
.github/workflows/audit.yaml
vendored
@@ -33,12 +33,11 @@ jobs:
|
||||
- name: Run staticcheck
|
||||
run: staticcheck ./...
|
||||
|
||||
- name: Install golint
|
||||
run: go install golang.org/x/lint/golint@latest
|
||||
- name: Install golangci-lint
|
||||
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
|
||||
- name: Run golint
|
||||
run: golint -set_exit_status ./...
|
||||
continue-on-error: true
|
||||
- name: Run golangci-lint
|
||||
run: golangci-lint run --timeout 5m
|
||||
|
||||
- name: Run tests
|
||||
run: go test -race -vet=off ./...
|
||||
|
||||
Reference in New Issue
Block a user