Check docsgen in CI
This commit is contained in:
parent
db4896577c
commit
b5f4a91002
@ -252,6 +252,26 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
command: "! go fmt ./... 2>&1 | read"
|
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
|
lint: &lint
|
||||||
description: |
|
description: |
|
||||||
Run golangci-lint.
|
Run golangci-lint.
|
||||||
@ -319,6 +339,8 @@ workflows:
|
|||||||
- lint-all
|
- lint-all
|
||||||
- mod-tidy-check
|
- mod-tidy-check
|
||||||
- gofmt
|
- gofmt
|
||||||
|
- cbor-gen-check
|
||||||
|
- docs-check
|
||||||
- test:
|
- test:
|
||||||
codecov-upload: true
|
codecov-upload: true
|
||||||
test-suite-name: full
|
test-suite-name: full
|
||||||
|
3
Makefile
3
Makefile
@ -279,5 +279,8 @@ method-gen:
|
|||||||
|
|
||||||
gen: type-gen method-gen
|
gen: type-gen method-gen
|
||||||
|
|
||||||
|
docsgen:
|
||||||
|
go run ./api/docgen > documentation/en/api-functions.md
|
||||||
|
|
||||||
print-%:
|
print-%:
|
||||||
@echo $*=$($*)
|
@echo $*=$($*)
|
||||||
|
1
documentation/en/api-functions.md
Normal file
1
documentation/en/api-functions.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# docs
|
Loading…
Reference in New Issue
Block a user