Skip to content

Commit ceeb19b

Browse files
make: Add check-doc-examples in Makefile for check-source
1 parent 16db45d commit ceeb19b

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
@@ -577,8 +577,13 @@ check-amount-access:
577577
@! (git grep -nE "(->|\.)(milli)?satoshis" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -v '/* Raw:')
578578
@! git grep -nE "\\(struct amount_(m)?sat\\)" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -vE "sizeof.struct amount_(m)?sat."
579579

580+
check-doc-examples:
581+
$(PYTEST) $(PYTEST_OPTS) tests/autogenerate-rpc-examples.py
582+
git diff --exit-code HEAD
583+
584+
580585
# For those without working cppcheck
581-
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
586+
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
582587

583588
check-source: check-source-no-cppcheck
584589

0 commit comments

Comments
 (0)