Skip to content

Commit 44f9ef1

Browse files
make: Add check-doc-examples in Makefile for check-source
1 parent 775addd commit 44f9ef1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
timeout-minutes: 30
2525
env:
2626
BOLTDIR: bolts
27+
VALGRIND: 0
28+
PYTEST_OPTS: --timeout=1200
2729
strategy:
2830
fail-fast: true
2931
steps:

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,13 @@ check-amount-access:
574574
@! (git grep -nE "(->|\.)(milli)?satoshis" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -v '/* Raw:')
575575
@! git grep -nE "\\(struct amount_(m)?sat\\)" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -vE "sizeof.struct amount_(m)?sat."
576576

577+
check-doc-examples:
578+
$(PYTEST) $(PYTEST_OPTS) tests/autogenerate-rpc-examples.py
579+
git diff --exit-code HEAD
580+
581+
577582
# For those without working cppcheck
578-
check-source-no-cppcheck: check-makefile check-source-bolt check-whitespace check-spelling check-python check-includes check-shellcheck check-setup_locale check-tmpctx check-discouraged-functions check-amount-access
583+
check-source-no-cppcheck: check-makefile check-source-bolt check-whitespace check-spelling check-python check-includes check-shellcheck check-setup_locale check-tmpctx check-discouraged-functions check-amount-access check-doc-examples
579584

580585
check-source: check-source-no-cppcheck check-cppcheck
581586

0 commit comments

Comments
 (0)