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 Nov 4, 2024
1 parent c828426 commit 80941ac
Show file tree
Hide file tree
Showing 2 changed files with 8 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=1200
strategy:
fail-fast: true
steps:
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,13 @@ 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
git diff --exit-code HEAD


# 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 80941ac

Please sign in to comment.