-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use mise for sharing versions in CI and local dev (#17)
Currently, versions for Go and related tools (e.g., golangci-lint) are specified differently for CI and local development. Using mise allows us to share the same config across environments. Local development only uses latest, but we also want to test go1.22 on CI so use mise environments to use a separate config for oldstable. Start using mise tasks, moving the `lint` target from Makefile to mise.
- Loading branch information
Showing
4 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tools] | ||
go = "1.22" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tools] | ||
go = "1.23" | ||
golangci-lint = "v1.63.4" | ||
|
||
[tasks.build] | ||
description = "Build Go packages" | ||
run = "go build ./..." | ||
|
||
[tasks.test] | ||
description = "Run Go tests" | ||
run = "go test ./..." | ||
|
||
[tasks.lint] | ||
description = "Run golangci-lint" | ||
run = "golangci-lint run ./..." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters