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

Parameterize the golangci-lint version for the provider repositories #178

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

ulucinar
Copy link
Contributor

@ulucinar ulucinar commented Jan 28, 2024

Description of your changes

From time to time, we need to bump the golangci-lint version used with a specific official provider. In that case, we would like to be able to do so:

  • Without the need for a change in the uptest repo where the common CI definitions reside
  • Without bumping this dependency across all the provider repos

This PR parameterizes the golanci-lint version used in the provider build pipelines. It also bumps the default version used for that action to v1.55.2, which is necessary for crossplane-contrib/provider-upjet-aws#1075.

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

It's a little bit inconvenient to test these PRs as the providers consume these reusable workflows from the main branch of uptest due to security constraints on Github actions regarding the repo secrets. There are ways to test such PRs before merging them to the main branch but for relatively simple PRs like this one, we generally first merge them and test them from the main branch of uptest in the official provider repositories. We may need to adopt a new strategy if these reusable workflows are used in other repositories as well.

…h the

Github action workflow call parameter "golangci-version" in provider-ci.yml

- From time to time, we need to bump the golangci-lint version used with a
  specific official provider. In that case, we would like to be able to do
  so without a change in the uptest repo where the common CI definitions are,
  and to do so without bumping this dependency across all the provider repos.

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
@ulucinar ulucinar requested a review from turkenf January 28, 2024 13:58
@ulucinar ulucinar changed the title Parameterize the golangci/golangci-lint-action version for the provider repositories Parameterize the golangci/golangci-lint version for the provider repositories Jan 28, 2024
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar changed the title Parameterize the golangci/golangci-lint version for the provider repositories Parameterize the golangci-lint version for the provider repositories Jan 28, 2024
@ulucinar ulucinar merged commit b0ebd2a into upbound:main Jan 29, 2024
6 checks passed
@ulucinar ulucinar deleted the parameterize-golangci-lint-version branch January 29, 2024 11:43
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