-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
54 lines (43 loc) · 1.38 KB
/
mise.toml
File metadata and controls
54 lines (43 loc) · 1.38 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
[tools]
go = "latest"
golangci-lint = "latest"
goreleaser = "latest"
[tasks.fmt]
description = "Format all Go source files"
run = "gofmt -w gib/ cmd/"
[tasks.lint]
description = "Run golangci-lint on all modules"
run = """
golangci-lint run ./gib/...
golangci-lint run ./cmd/gib/...
"""
[tasks.vet]
description = "Run go vet on all modules"
run = "go vet github.com/jbadeau/gib/... github.com/jbadeau/gib/cmd/gib/..."
[tasks.test]
description = "Run all tests across both modules"
run = "go test github.com/jbadeau/gib/... github.com/jbadeau/gib/cmd/gib/..."
[tasks."test:verbose"]
description = "Run all tests with verbose output"
run = "go test -v github.com/jbadeau/gib/... github.com/jbadeau/gib/cmd/gib/..."
[tasks."test:cover"]
description = "Run tests with coverage report"
run = "go test -cover github.com/jbadeau/gib/... github.com/jbadeau/gib/cmd/gib/..."
[tasks.build]
description = "Build the gib CLI binary"
run = "go build -o bin/gib ./cmd/gib"
[tasks.check]
description = "Run fmt, vet, lint, and test"
depends = ["fmt", "vet", "lint", "test"]
[tasks.tidy]
description = "Tidy both module dependencies"
run = """
cd gib && go mod tidy
cd cmd/gib && go mod tidy
"""
[tasks.release]
description = "Create a release with goreleaser"
run = "goreleaser release --clean"
[tasks."release:snapshot"]
description = "Build a snapshot release (no publish)"
run = "goreleaser release --snapshot --clean"