-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmise.toml
More file actions
42 lines (34 loc) · 1.07 KB
/
mise.toml
File metadata and controls
42 lines (34 loc) · 1.07 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
[tools]
go = "latest"
op = "latest"
"go:github.com/golangci/golangci-lint/v2/cmd/golangci-lint" = "latest"
gh = "latest"
goreleaser = "latest"
[tasks.build]
description = "Build the CLI binary"
run = """
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
go build -ldflags "-X github.com/seletz/odoo-work-cli/internal/version.Version=${VERSION}" -o odoo-work-cli ./cmd/odoo-work-cli
"""
[tasks.release]
description = "Create a new release (interactive semver bump)"
run = "scripts/release.sh"
[tasks.run]
description = "Build and run the CLI (pass args after --)"
depends = ["build"]
run = "./odoo-work-cli {{arg(i=0, var=true)}}"
[tasks.test]
description = "Run all tests"
run = "go test ./..."
[tasks.lint]
description = "Run golangci-lint"
run = "golangci-lint run ./..."
[tasks.fmt]
description = "Format Go code"
run = "gofmt -w ."
[tasks.goreleaser-check]
description = "Validate GoReleaser config"
run = "goreleaser check"
[tasks.goreleaser-snapshot]
description = "Test GoReleaser build locally (no publish)"
run = "goreleaser release --snapshot --clean"