Skip to content

Commit

Permalink
make: Add check-doc-examples in Makefile for check-source
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahanaFarooqui committed Oct 22, 2024
1 parent 638fb95 commit 40dc0f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
timeout-minutes: 30
env:
BOLTDIR: bolts
VALGRIND: 0
PYTEST_OPTS: --timeout=40
strategy:
fail-fast: true
steps:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,11 @@ check-amount-access:
@! (git grep -nE "(->|\.)(milli)?satoshis" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -v '/* Raw:')
@! git grep -nE "\\(struct amount_(m)?sat\\)" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -vE "sizeof.struct amount_(m)?sat."

check-doc-examples:
$(PYTEST) $(PYTEST_OPTS) tests/autogenerate-rpc-examples.py

# For those without working cppcheck
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-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

check-source: check-source-no-cppcheck check-cppcheck

Expand Down

0 comments on commit 40dc0f8

Please sign in to comment.