diff --git a/.circleci/config.yml b/.circleci/config.yml index 0b2329954..8ee3bca33 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/Makefile b/Makefile index e8c3a2220..31140589a 100644 --- a/Makefile +++ b/Makefile @@ -279,5 +279,8 @@ method-gen: gen: type-gen method-gen +docsgen: + go run ./api/docgen > documentation/en/api-functions.md + print-%: @echo $*=$($*) diff --git a/documentation/en/api-functions.md b/documentation/en/api-functions.md new file mode 100644 index 000000000..1dc6372f7 --- /dev/null +++ b/documentation/en/api-functions.md @@ -0,0 +1 @@ +# docs \ No newline at end of file