Skip to content
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

Run staticcheck as part of CI #19

Merged
merged 2 commits into from
Feb 19, 2021

Conversation

tklauser
Copy link
Member

Use go install behavior in Go 1.16 to get staticcheck whithout having to add it as a package dependency.

Also run gofmt only with Go 1.16. In the past there occasionally have been changes in gofmt behavior between Go versions. In order to avoid these, only run gofmt from the latest Go version, i.e. currently Go 1.16.

@tklauser tklauser requested a review from rolinh February 19, 2021 11:01
.github/workflows/tests.yml Outdated Show resolved Hide resolved
.github/workflows/tests.yml Outdated Show resolved Hide resolved
In the past there occasionally have been changes in gofmt behavior
between Go versions. In order to avoid these, only run gofmt from the
latest Go version, i.e. currently Go 1.16.

Follow-up for commit 656b9db (".github: use matrix strategy and
test with Go 1.15 as well")

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser force-pushed the pr/tklauser/gh-action-staticcheck branch from 1181523 to 3ba5d29 Compare February 19, 2021 11:06
@tklauser tklauser requested a review from rolinh February 19, 2021 11:07
@rolinh rolinh merged commit 1e2de87 into cilium:master Feb 19, 2021
@tklauser tklauser deleted the pr/tklauser/gh-action-staticcheck branch February 19, 2021 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants