-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathmise.toml
More file actions
52 lines (42 loc) · 1.64 KB
/
mise.toml
File metadata and controls
52 lines (42 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Pinned local toolchain for contributors. The Go version matches the
# CI and release toolchain; the module minimum stays in go.mod.
[settings]
experimental = true
lockfile = true
[tools]
go = "1.26.2"
golangci-lint = "2.11.4"
lefthook = "2.1.6"
"aqua:mvdan/gofumpt" = "0.9.2"
"go:github.com/nikolaydubina/go-cover-treemap" = "1.5.1"
"github:goreleaser/goreleaser-pro" = "2.15.4"
ko = "0.18.1"
[tasks.format]
description = "Format Go files with gofumpt"
run = "gofumpt -w ."
[tasks.build]
description = "Build a local bk binary into dist/"
run = "VERSION=\"$(git describe --tags --dirty --always 2>/dev/null || echo DEV)\"; mkdir -p dist && go build -ldflags \"-X github.com/buildkite/cli/v3/cmd/version.Version=$VERSION\" -o dist/bk ."
[tasks.install]
description = "Install the local bk binary into the active Go bin directory"
depends = ["build"]
run = "BIN_DIR=\"$(go env GOBIN)\"; if [ -z \"$BIN_DIR\" ]; then BIN_DIR=\"$(go env GOPATH)/bin\"; fi; mkdir -p \"$BIN_DIR\"; install -m 0755 dist/bk \"$BIN_DIR/bk\""
[tasks."install:global"]
description = "Install the local bk binary into ~/bin"
depends = ["build"]
run = "mkdir -p \"$HOME/bin\"; install -m 0755 dist/bk \"$HOME/bin/bk\""
[tasks.lint]
description = "Run golangci-lint with the repository configuration"
run = "golangci-lint run --verbose --timeout 3m"
[tasks.test]
description = "Run the Go test suite"
run = "go test ./..."
[tasks.generate]
description = "Regenerate the GraphQL client code"
run = "go generate ./cmd/generate"
[tasks.hooks]
description = "Install the repository git hooks"
run = "lefthook install"
[tasks.ci]
description = "Run the main local CI checks"
depends = ["lint", "test"]