Check docsgen in CI

This commit is contained in:
Łukasz Magiera 2020-08-24 12:20:23 +02:00
parent db4896577c
commit b5f4a91002
3 changed files with 26 additions and 0 deletions

View File

@ -252,6 +252,26 @@ jobs:
- run:
command: "! go fmt ./... 2>&1 | read"
cbor-gen-check:
executor: golang
steps:
- install-deps
- prepare
- run: go install golang.org/x/tools/cmd/goimports
- run: go install github.com/hannahhoward/cbor-gen-for
- run: go generate ./...
- run: git --no-pager diff
- run: git --no-pager diff --quiet
docs-check:
executor: golang
steps:
- install-deps
- prepare
- run: make docsgen
- run: git --no-pager diff
- run: git --no-pager diff --quiet
lint: &lint
description: |
Run golangci-lint.
@ -319,6 +339,8 @@ workflows:
- lint-all
- mod-tidy-check
- gofmt
- cbor-gen-check
- docs-check
- test:
codecov-upload: true
test-suite-name: full

View File

@ -279,5 +279,8 @@ method-gen:
gen: type-gen method-gen
docsgen:
go run ./api/docgen > documentation/en/api-functions.md
print-%:
@echo $*=$($*)

View File

@ -0,0 +1 @@
# docs