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

ci: added golangci-lint to pre-commit #829

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

lukasmetzner
Copy link
Contributor

Added golangci-lint run hook to pre-commit configuration and removed separate CI step.

Added golangci-lint run hook to pre-commit configuration and removed separate CI step.
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.56%. Comparing base (64ee634) to head (1fed6bc).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #829   +/-   ##
=======================================
  Coverage   70.56%   70.56%           
=======================================
  Files          31       31           
  Lines        3285     3285           
=======================================
  Hits         2318     2318           
  Misses        793      793           
  Partials      174      174           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Pin golangci-lint language version and let it manage via renovate
.pre-commit-config.yaml Outdated Show resolved Hide resolved
.pre-commit-config.yaml Outdated Show resolved Hide resolved
@jooola jooola requested a review from apricote December 17, 2024 14:51
Co-authored-by: Jonas L. <jooola@users.noreply.github.com>
Copy link
Member

@jooola jooola left a comment

Choose a reason for hiding this comment

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

I would just check how long the cold run takes and see if the cache is persisted across ci runs, if not we might need to investigate why the cache is not preserved.

Other than that looks good from my side, maybe @apricote is against this, I'll leave the final decision to him.

.pre-commit-config.yaml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
Additionally include restore-keys.
golangci-lint has by far the longest runtime and should therefore be executed last.
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