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

Use Staticcheck v0.5.1 in CI infrastructure #5175

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Sep 30, 2024

Description:

This makes sure that we are using the latest version in CI and updates the code to fix those issues.
It also includes a patch that I forgot to push a while ago about making the CI use Go 1.22 (then also a bump to Go 1.23 while at it) and also always pull the latest version of the setup-go-faster action.

Should hopefully unblock #5121

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

This mainly does two things:
- Uses Go 1.22 instead of 1.21 as the highest version (I don't have 1.23
  on Fedora 40 yet so did not want to bump to latest just yet).
- We now always pull the latest setup-go-faster action in v1 without
  having to manually change version.
This fixes a few code errors that slipped through review (thankfully now
handled by Staticcheck for us) and makes sure we are using the latest
version.
Haven't quite gotten used to Nvim yet ;)
This should be safer than ever given that some new features are
dependent on the version in go.mod.
@Jacalz
Copy link
Member Author

Jacalz commented Sep 30, 2024

Test coverage lowered without changing tests? Let's see if a kick fixes it 😅

@andydotxyz
Copy link
Member

Test coverage lowered without changing tests? Let's see if a kick fixes it 😅

I think sometimes Coveralls gets confused with multiple branches building

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Looks good, I'll merge and fix the CI requirements

@andydotxyz andydotxyz merged commit 68e61b1 into fyne-io:develop Sep 30, 2024
10 of 11 checks passed
@Jacalz Jacalz deleted the ci-updates branch September 30, 2024 20:20
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.

2 participants