36 lines
530 B
HCL
36 lines
530 B
HCL
|
task "script" "buf_generate" {
|
||
|
inline = [
|
||
|
"buf generate"
|
||
|
]
|
||
|
|
||
|
out_dir = repo.root
|
||
|
|
||
|
input_mapping = {
|
||
|
"api" = "api",
|
||
|
"buf.gen.yaml" = "buf.gen.yaml"
|
||
|
"buf.work.yaml" = "buf.work.yaml"
|
||
|
}
|
||
|
|
||
|
container {
|
||
|
image = "docker.io/bufbuild/buf"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
task "script" "golangci_lint" {
|
||
|
inline = [
|
||
|
"golangci-lint run -v"
|
||
|
]
|
||
|
|
||
|
container {
|
||
|
image = "golangci/golangci-lint"
|
||
|
}
|
||
|
|
||
|
depends_on = [
|
||
|
tasks.go_fmt.id,
|
||
|
tasks.go_generate.id,
|
||
|
]
|
||
|
|
||
|
input_mapping = {
|
||
|
"${repo.root}" = "."
|
||
|
}
|
||
|
}
|