1
proto/.woodpecker.yml

38 lines
859 B
YAML
Raw Permalink Normal View History

# -- Switch back to depends_on when 2.1.x becomes available via cli
2023-12-31 02:33:35 +00:00
steps:
license:
image: golang:1.20
environment:
GO111MODULE: on
GOBIN: /usr/local/bin
commands:
- go install github.com/google/addlicense@latest
- addlicense -check -f ./legal/header.txt -skip yaml -skip yml -skip xml .
lint:
image: bufbuild/buf:1.28.1
commands:
- buf lint
generate:
image: bufbuild/buf:1.28.1
commands:
- buf generate .
swagger:
image: golang:1.20
environment:
GO111MODULE: on
GOBIN: /usr/local/bin
commands:
- cd scripts && go install ./merge-swagger && cd ..
- |
merge-swagger \
-output swagger.json \
"./*/*/*.swagger.json" \
"./swagger/metadata.json"
2023-12-31 05:22:22 +00:00
block-changes:
image: qwerty287/woodpecker-block-git-changes