klefki/.mise.toml
renovate[bot] bfb88a05ff
All checks were successful
tests / go test (push) Successful in 30s
tests / golangci-lint (push) Successful in 39s
chore(deps): update dependency golangci-lint to v1.64.6 (#6)
Reviewed-on: #6
Co-authored-by: renovate[bot] <renovate@rgst.io>
Co-committed-by: renovate[bot] <renovate@rgst.io>
2025-03-04 23:03:19 +00:00

65 lines
1.7 KiB
TOML

# Default versions of tools, to update these, set [tools.override]
[tools]
bun = "latest"
git-cliff = "latest"
golang = "1.24.1"
golangci-lint = "1.64.6"
goreleaser = "latest"
"go:gotest.tools/gotestsum" = "1.12.0"
"go:golang.org/x/tools/cmd/goimports" = "latest"
"go:mvdan.cc/sh/v3/cmd/shfmt" = "latest"
"go:github.com/thenativeweb/get-next-version" = "latest"
# gRPC
"aqua:bufbuild/buf" = "1.50.0"
"go:google.golang.org/protobuf/cmd/protoc-gen-go" = "1.36.5"
"go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "1.5.1"
"go:github.com/fullstorydev/grpcui/cmd/grpcui" = "1.4.2"
"aqua:protocolbuffers/protobuf/protoc" = "24.3"
[tasks.build]
description = "Build a binary for the current platform/architecture"
run = "go build -trimpath -o ./bin/ -v ./cmd/..."
[tasks.changelog]
description = "Generate a changelog for the current version"
outputs = ["CHANGELOG.md"]
run = ["git-cliff --config .cliff.toml --output CHANGELOG.md"]
[tasks.fmt]
alias = "format"
description = "Format code"
run = [
"go mod tidy",
"gofmt -s -w .",
"goimports -w .",
"shfmt -w .",
"bun node_modules/.bin/prettier --write '**/*.{json,yaml,yml,md,jsonschema.json}'",
"buf format -w",
]
[tasks.lint]
description = "Run linters"
run = "golangci-lint run"
[tasks.next-version]
description = """Get the version number that would be released if a release was ran right now.
Pass --rc to get the next release candidate version.
"""
run = ["./.github/scripts/get-next-version.sh"]
[tasks.test]
description = "Run tests"
run = "gotestsum"
## <<Stencil::Block(custom)>>
[tasks.dev]
description = "Live reload target (use with `mise run watch`)"
depends = ["build"]
run = ["./bin/klefki"]
[tasks.watch]
description = "Watch for changes"
run = ["mise watch -t dev --restart"]
## <</Stencil::Block>>