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

chore: add formatting and ci tools for go #247

Merged
merged 2 commits into from Oct 7, 2022

Conversation

fiam
Copy link
Contributor

@fiam fiam commented Oct 7, 2022

  • Install golangci-lint and gci via check-setup
  • Add Makefile targets for format-go and golang-ci

Checklist

@vercel
Copy link

vercel bot commented Oct 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
wundergraph-docs ⬜️ Ignored (Inspect) Oct 7, 2022 at 8:00PM (UTC)

Makefile Outdated Show resolved Hide resolved
scripts/check-setup.sh Outdated Show resolved Hide resolved
- Install golangci-lint and gci via check-setup
- Add Makefile targets for golang-ci and golang-ci-fix. The former runs
  the same checks as CI while the latter tries to fix any errors (e.g.
  like incorrect formatting, not everything is automatically fixable)
@fiam fiam force-pushed the alberto/go-ci-format-tools branch from 1d3ce85 to ca80fe1 Compare October 7, 2022 18:24
scripts/check-setup.sh Outdated Show resolved Hide resolved
Add also a Makefile target to run it
Copy link
Collaborator

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

@fiam
Copy link
Contributor Author

fiam commented Oct 7, 2022

@StarpTech Thanks for the review! Could you please override the check and merge? This is hitting the build_test filter problem that we talked about. We should look into it next week, but it would be nice to close PRs in the meantime.

@StarpTech StarpTech merged commit b0bd559 into main Oct 7, 2022
@StarpTech StarpTech deleted the alberto/go-ci-format-tools branch October 7, 2022 20:25
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.

None yet

3 participants