octoplex/mise/config.toml
2025-05-06 21:38:14 +02:00

49 lines
1.0 KiB
TOML

[env]
GOTOOLCHAIN = "go1.24.2"
[tasks.test]
description = "Run tests"
dir = "{{cwd}}"
run = "go test -v ./..."
alias = "t"
[tasks.test_integration]
description = "Run integration tests"
dir = "{{cwd}}"
run = "go test -v -count 1 -p 1 -tags=integration -run TestIntegration ./..."
alias = "ti"
[tasks.test_ci]
description = "Run tests in CI"
dir = "{{cwd}}"
run = "go test -v -count 1 -race ./..."
[tasks.test_integration_ci]
description = "Run integration tests in CI"
dir = "{{cwd}}"
run = "go test -v -count 1 -race -p 1 -tags=integration -run TestIntegration ./..."
[tasks.lint]
description = "Run linters"
dir = "{{cwd}}"
run = "golangci-lint run"
alias = "l"
[tasks.fmt]
description = "Run formatter"
dir = "{{cwd}}"
run = "goimports -w ."
alias = "f"
[tasks.generate_mocks]
description = "Generate mocks"
dir = "{{cwd}}"
run = "go tool mockery"
alias = "m"
[tasks.generate_proto]
description = "Generate gRPC files from proto"
dir = "{{cwd}}"
run = "protoc --go_out=./generated/grpc --go-grpc_out=./generated/grpc proto/*.proto"
alias = "p"