-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathmise.toml
More file actions
72 lines (66 loc) · 1.76 KB
/
mise.toml
File metadata and controls
72 lines (66 loc) · 1.76 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
[settings]
experimental = true
[tools]
changie = "latest"
"github:bufbuild/buf" = "1.56.0"
"github:cludden/protoc-gen-go-temporal" = "latest"
"github:golangci/golangci-lint" = "2.3.0"
"github:protocolbuffers/protobuf-go" = "1.36.8"
"github:temporalio/cli" = "1.3.0"
"github:vektra/mockery" = "3.5.1"
go = "1.23.6"
"go:github.com/alta/protopatch/cmd/protoc-gen-go-patch" = "v0.5.3"
"go:github.com/bergundy/protoc-gen-go-nexus-temporal/cmd/protoc-gen-go-nexus-temporal" = "v0.0.4"
"go:github.com/bergundy/protoc-gen-go-nexus/cmd/protoc-gen-go-nexus" = "v0.0.8"
"go:github.com/mfridman/tparse" = "v0.17.0"
goreleaser = "latest"
node = "latest"
protoc = "latest"
[tasks.build]
description = "Build the project"
run = """#!/usr/bin/env bash
set -euo pipefail
go build -o ./dist/protoc-gen-go_temporal ./cmd/protoc-gen-go_temporal
"""
[tasks.docs]
description = "Generate documentation"
run = """#!/usr/bin/env bash
set -euo pipefail
cd docs && npm run start
"""
[tasks.gen]
description = "Generate code"
run = """#!/usr/bin/env bash
set -euo pipefail
rm -rf ./gen/**
buf dep update
buf format -w
buf lint
buf generate
buf generate --template buf.patch.gen.yaml
buf generate --template buf.cliv3.gen.yaml
buf generate --template buf.nexus.gen.yaml
mockery --log-level=error
go mod tidy
"""
[tasks.genlocal]
description = "Generate code locally"
run = """#!/usr/bin/env bash
set -euo pipefail
rm -rf ./gen/**
buf dep update
buf format -w
buf lint
buf generate --template buf.local.gen.yaml
buf generate --template buf.patch.gen.yaml
buf generate --template buf.cliv3.gen.yaml
buf generate --template buf.nexus.gen.yaml
mockery --log-level=error
go mod tidy
"""
[tasks.test]
description = "Run tests"
run = """#!/usr/bin/env bash
set -euo pipefail
set -o pipefail && go test -json ./... | tparse -all
"""