Skip to content

CI: add golangci-lint via github actions#2618

Merged
kolyshkin merged 1 commit intoopencontainers:masterfrom
kolyshkin:golangci-lint
Oct 1, 2020
Merged

CI: add golangci-lint via github actions#2618
kolyshkin merged 1 commit intoopencontainers:masterfrom
kolyshkin:golangci-lint

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

It is set to only check the new code, so this should help maintainers to see any new issues introduced by PRs.

To see the example how it works, check kolyshkin#1

Fixes: #2617

@kolyshkin
Copy link
Copy Markdown
Contributor Author

@AkihiroSuda @mrunalp PTAL

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@kolyshkin kolyshkin merged commit 35c3555 into opencontainers:master Oct 1, 2020
@AkihiroSuda
Copy link
Copy Markdown
Member

@kolyshkin
Copy link
Copy Markdown
Contributor Author

Is this expected?

Oh well, no. It should only check new changes and apparently it chokes on merge commits. Let me see if there's a way to disable checking master...

@kolyshkin
Copy link
Copy Markdown
Contributor Author

kolyshkin commented Oct 3, 2020

OK, so it checks only new issues in pull requests, and it checks the master branch as is.

      # Optional: show only new issues if it's a pull request. The default value is `false`.
     # only-new-issues: true

I can turn onoff checking the master, I guess, until we're error-free.

@thaJeztah
Copy link
Copy Markdown
Member

Yes, I'd prefer having existing issues fixed, and after that we could only check changes; see #2627

@kolyshkin
Copy link
Copy Markdown
Contributor Author

I can turn on checking the master, I guess, until we're error-free.

I mean off :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add golangci-lint to ci

4 participants