Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
@@ -6,6 +6,10 @@ when:
|
||||
steps:
|
||||
lint:
|
||||
name: Lint protobufs
|
||||
image: yoheimuta/protolint
|
||||
image: golang:1.26.2-alpine3.22
|
||||
commands:
|
||||
- protolint lint $(find . -type f -iname "*.proto")
|
||||
- apk update
|
||||
- apk add bash
|
||||
- curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.alpine.sh' | sudo -E bash
|
||||
- apk add task
|
||||
- task lint
|
||||
|
||||
@@ -10,8 +10,10 @@ vars:
|
||||
PROTODOC: "{{.LOCALBIN}}/protodoc"
|
||||
PROTOLINT: "{{.LOCALBIN}}/protolint"
|
||||
tasks:
|
||||
container-lint:
|
||||
lint:
|
||||
desc: Run linter in a container
|
||||
deps:
|
||||
- protolint
|
||||
cmd: |-
|
||||
"{{.CONTAINER_TOOL}}" run --rm \
|
||||
-v $PWD:/workspace:z \
|
||||
@@ -19,8 +21,10 @@ tasks:
|
||||
docker.io/yoheimuta/protolint:latest lint \
|
||||
$(find . -type f -iname "*.proto")
|
||||
|
||||
container-docs:
|
||||
gen-docs:
|
||||
desc: Generate docs in a container
|
||||
deps:
|
||||
- protodoc
|
||||
cmd: |-
|
||||
"{{.CONTAINER_TOOL}}" run --rm \
|
||||
-v $PWD/proto:/protos \
|
||||
|
||||
Reference in New Issue
Block a user