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(lint): Bump GitHub Action versions #358

Merged
merged 3 commits into from
Mar 31, 2023

Conversation

karlskewes
Copy link
Contributor

@karlskewes karlskewes commented Mar 31, 2023

Lint action was failing. Bumping versions for various actions seems to fix it.

Lint action failing and various actions could be bumped which might
help.
@karlskewes karlskewes force-pushed the golangci-lint branch 2 times, most recently from 5480625 to cc805e8 Compare March 31, 2023 05:58
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,7 @@
version: 2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This has worked well for me in other non-spinnaker repositories.
Be good to add to all of the repositories.

Weekly interval might generate a lot of PR's (especially across all repositories).
See: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#scheduleinterval

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's try it :). If it works, it'll be nice to use elsewhere.

uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to manually bump the Go version in GHA's anymore.
setup-go can now pull from go.mod which is the source of truth.
Works well for me in other non-spinnaker repositories.

@@ -27,17 +31,18 @@ jobs:
if: startsWith(github.repository, 'spinnaker/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

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

Somehow it feels funny to do checkout + setup-go twice. I'm inclined to merge this and follow up with improvements to unblock the other open PRs.

@dbyron-sf dbyron-sf added the ready to merge Approved and Reviewed and ready for merge label Mar 31, 2023
@mergify mergify bot added the auto merged label Mar 31, 2023
@mergify mergify bot merged commit d81f4ab into spinnaker:master Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged ready to merge Approved and Reviewed and ready for merge target-release/1.30
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants