Skip to content

Commit 99b3723

Browse files
author
Josh Newman
committed
feat: add taskfile
1 parent acc255a commit 99b3723

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Taskfile.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 3
2+
3+
vars:
4+
wd: /workspace
5+
6+
tasks:
7+
default:
8+
cmds:
9+
- task: lint
10+
- task: test
11+
12+
buf-image:
13+
summary: Builds an image locally for running Buf.
14+
cmds:
15+
- docker build -f buf.Dockerfile -t localbuf:latest .
16+
17+
lint:
18+
summary: Lints Protobuf and Go.
19+
deps:
20+
- task: buf-image
21+
cmds:
22+
- docker run --rm -v "$(pwd):{{.wd}}" -w {{.wd}} localbuf lint
23+
- golangci-lint run ./...
24+
25+
generate:
26+
summary: Generates Go from Protobuf.
27+
deps:
28+
- task: buf-image
29+
cmds:
30+
- docker run --rm -v "$(pwd):/{{.wd}}" -w {{.wd}} localbuf generate

0 commit comments

Comments
 (0)