-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-test
: remove go vet, tweak golangci-lint, change order
#542
Conversation
go-test
: remove go vet, tweak golangci-lint
Your development orb(s) have been published. It will expire in 30 days. |
Your development orb(s) have been published. It will expire in 30 days. |
Your development orb(s) have been published. It will expire in 30 days. |
This reverts commit 09b49e8.
Your development orb(s) have been published. It will expire in 30 days. |
Your development orb(s) have been published. It will expire in 30 days. |
go-test
: remove go vet, tweak golangci-lintgo-test
: remove go vet, tweak golangci-lint, change order
Your development orb(s) have been published. It will expire in 30 days. |
Your development orb(s) have been published. It will expire in 30 days. |
In this PR I'm mainly removing the separate execution of
go vet
, as it's redundant with the checks executed bygolangci-lint
.Additional changes:
--max-issues-per-linter
to 0 (unlimited) in golangci-lint executionenvironment
key to set environment variables in a more idiomatic waygo test
before golangci-lint (see below)golangci-lint
. We'll have to evaluate in practice whether this really speeds up anything.During testing I noticed that
golangci-lint
can take a relatively long time to end up finding a compilation problem, like a breaking API change in a major dependency upgrade.To catch problems like this faster, I moved the
go test
step to happen before thegolangci-lint
step. This means that compilation problems are already found in the build that happens ongo test
, and according to my tests withkubectl-gs
, this is faster than thegolangci-lint
execution.Checklist