Skip to content

Conversation

@nodece
Copy link
Member

@nodece nodece commented Jul 13, 2024

Motivation

Improve CI.

Modifications

  • build and test uses the go-version: [ '1.20', '1.21', '1.22' ] matrix.
  • lint uses the go 1.20([email protected] doesn't work on go 1.21 or later version) version and golangci/golangci-lint-action@v6, the lint result will be reported on the pr.

@nodece nodece force-pushed the validate-multiple-version-builds branch 2 times, most recently from 07f82fd to a1c0974 Compare July 13, 2024 16:53
@nodece nodece changed the title ci: validate multiple version builds ci: validate multiple version builds and use golangci-lint-action Jul 13, 2024
@nodece nodece force-pushed the validate-multiple-version-builds branch from 0220fb8 to 0d3b709 Compare July 13, 2024 17:00
@nodece nodece marked this pull request as draft July 13, 2024 17:02
@nodece nodece marked this pull request as ready for review July 13, 2024 17:33
@tisonkun tisonkun merged commit 2ff2c2c into apache:master Jul 14, 2024
Comment on lines +43 to +45
uses: golangci/golangci-lint-action@v6
with:
version: v1.51.2
Copy link
Member

Choose a reason for hiding this comment

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

Why this change? We still provide the Makefile target. This unaligned may silently cause CI logic and dev logic different ..

Both download binaries so that time consumption should be similiar.

Copy link
Member Author

Choose a reason for hiding this comment

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

golangci/golangci-lint-action can report lint result to the ci summary.

When we update the golangci-lint, we must update the workflow and makefile files to keep same version.

@nodece nodece deleted the validate-multiple-version-builds branch July 14, 2024 09:34
@RobertIndie RobertIndie modified the milestone: v0.13.0 Jul 15, 2024
RobertIndie pushed a commit that referenced this pull request Jul 31, 2024
)

* ci: validate multiple version builds and use golangci-lint-actio

* Fix lint

(cherry picked from commit 2ff2c2c)
@RobertIndie RobertIndie added this to the v0.14.0 milestone Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants