35 lines
754 B
YAML
35 lines
754 B
YAML
|
steps:
|
||
|
license:
|
||
|
image: golang:1.20
|
||
|
group: init
|
||
|
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
|
||
|
group: init
|
||
|
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"
|