mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
make: Add check-doc-examples in Makefile for check-source
This commit is contained in:
parent
e568d69867
commit
fffafe53eb
2 changed files with 8 additions and 1 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
@ -24,6 +24,8 @@ jobs:
|
|||
timeout-minutes: 30
|
||||
env:
|
||||
BOLTDIR: bolts
|
||||
VALGRIND: 0
|
||||
PYTEST_OPTS: --timeout=1200
|
||||
strategy:
|
||||
fail-fast: true
|
||||
steps:
|
||||
|
|
7
Makefile
7
Makefile
|
@ -577,8 +577,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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue