-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmise.toml
More file actions
73 lines (59 loc) · 1.52 KB
/
mise.toml
File metadata and controls
73 lines (59 loc) · 1.52 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[tools]
go = "1.26.2"
"go:github.com/vladopajic/go-test-coverage/v2" = "2.18.4"
"go:golang.org/x/vuln/cmd/govulncheck" = "1.2.0"
golangci-lint = "2.11.4"
goreleaser = "2.15.3"
gotestsum = "1.13.0"
hk = "1.43.0"
rumdl = "0.1.80"
zizmor = "1.24.1"
dprint = "0.54.0"
[env]
COVEROUT = "cover.out"
HK_PKL_BACKEND = "pklr"
[tasks.lint]
description = "Lint code"
run = [
"go mod tidy -diff",
"golangci-lint run ./...",
"goreleaser check",
]
[tasks.test]
description = "Run tests"
run = "gotestsum -- -race ./..."
[tasks.coverage]
description = "Generate test coverage"
run = "go test ./... -coverprofile=${COVEROUT} -covermode=atomic"
[tasks.covercheck]
description = "Check test coverage"
depends = ["coverage"]
run = "go-test-coverage -config .testcoverage.yml"
[tasks.ci]
description = "Run CI checks (lint, test, coverage)"
depends = ["lint", "test", "covercheck"]
[tasks.full-ci]
description = "Run CI checks + HK linting"
depends = "ci"
run = "hk check --profile ci --quiet"
[tasks.clean]
description = "Clean the project"
run = ["go clean", "rm -f ${COVEROUT}"]
[tasks.fix]
description = "Fix lint issues"
run = "golangci-lint run --fix ./..."
[tasks.format]
description = "Format the code"
run = "golangci-lint fmt ./..."
[tasks.tidy]
description = "Tidy the module"
run = "go mod tidy -v"
[tasks.build]
description = "Build application"
run = "go build -o dist/tmhi-cli ."
[tasks.dev]
description = "Development mode"
run = "go run ."
[tasks.depup]
description = "Upgrade dependencies"
run = ["go get -u -t ./...", "go mod tidy -v"]