-
Notifications
You must be signed in to change notification settings - Fork 16
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: Uses go version from go.mod #51
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
ok to test |
@@ -31,7 +31,7 @@ jobs: | |||
|
|||
- uses: actions/setup-go@v5 | |||
with: | |||
go-version: 1.21 | |||
go-version-file: "go.mod" | |||
|
|||
- name: Unit tests | |||
run: go test ./... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding a lint action?
run: go test ./... | |
run: go test ./... | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3.7.0 | |
with: | |
version: latest | |
args: -v --config ./.golangci.yml | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can but I would suggest doing it in a different PR as it is independent from this change
Co-authored-by: gab-arrobo <gabriel.arrobo@intel.com>
Co-authored-by: gab-arrobo <gabriel.arrobo@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Description
We use the go version from go.mod instead of specifying it in CI. This makes it so that when we will bump the Go version we will have to do it in less places and therefore avoids potential differences between the go version running in CI and the one in go.mod.