-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
37 lines (30 loc) · 1.11 KB
/
mise.toml
File metadata and controls
37 lines (30 loc) · 1.11 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
[tools]
# Please also keep the version aligned in the go.mod file
go = { version = '1.26.2', postinstall = "go install github.com/go-delve/delve/cmd/dlv@latest && go install gotest.tools/gotestsum@latest" }
golangci-lint = '2.11.3'
shellcheck = 'latest'
tmux = 'latest'
[tasks.fmt]
description = "Run gofmt"
run = "gofmt -s -w ."
[tasks.test]
description = "Run tests"
run = "go test ./..."
[tasks."test:integration"]
description = "Run integration tests"
run = "go test -tags=integration ./cmd/trace/cli/integration_test/..."
[tasks."test:ci"]
description = "Run all tests (unit + integration + E2E canary) with race detection"
run = """
go test -tags=integration -race ./...
mise run test:e2e:canary
"""
[tasks.check]
description = "Run formatting, linting, and CI tests"
depends = ["fmt", "lint", "test:ci"]
[tasks."build:windows"]
description = "Cross-compile for Windows amd64"
run = "CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o trace.exe ./cmd/trace/"
[tasks."build:windows-arm64"]
description = "Cross-compile for Windows arm64"
run = "CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -o trace-arm64.exe ./cmd/trace/"