-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add GitHub Actions workflows, use golangci-lint #1573
Conversation
🚀 🚢 |
@d1egoaz this PR is ready for final review, please take a look when you have a chance 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
.github/workflows/ci.yml
Outdated
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [1.12.x, 1.13.x] | ||
kafka-version: [2.3.1, 2.4.0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you think it'd be a good idea also to test against 2.2.x
like previously travis did it with 2.2.1
?
Use golangci-lint instead of assorted linters, apart from simplifying setup overall it'll allow running linters locally with a simple make lint. We still have a lot of linters disabled but otherwise there're too many failures. Will address those in a follow-up PR.
Build with GitHub Actions instead of Travis CI.
How to read this PR: first commit sets up GitHub Actions and golangci-lint, second commit fixes linter issues.
Interesting observation: GitHub Actions runs integration tests more than 2x faster compared to Travis.