File tree Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,18 @@ sudo apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \
2020 gcc-arm-none-eabi \
2121 gettext \
2222 git \
23+ gnupg \
2324 jq \
2425 libc6-dev-arm64-cross \
2526 libc6-dev-armhf-cross \
27+ libev-dev \
28+ libevent-dev \
29+ libffi-dev \
30+ libicu-dev \
2631 libpq-dev \
2732 libprotobuf-c-dev \
2833 libsqlite3-dev \
34+ libssl-dev \
2935 libtool \
3036 libxml2-utils \
3137 locales \
@@ -43,6 +49,7 @@ sudo apt-get -qq install --no-install-recommends --allow-unauthenticated -yy \
4349 software-properties-common \
4450 sudo \
4551 tcl \
52+ tclsh \
4653 unzip \
4754 valgrind \
4855 wget \
Original file line number Diff line number Diff line change 8888 - name : Check source
8989 env :
9090 VALGRIND : 0
91- GENERATE_EXAMPLES : 1
9291 PYTEST_OPTS : --timeout=1200
9392 run : make check-source BASE_REF="origin/${{ github.base_ref }}"
9493 - name : Check Generated Files have been updated
@@ -480,6 +479,51 @@ jobs:
480479 run : |
481480 poetry run pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
482481
482+ update-docs-examples :
483+ name : Update examples in doc schemas
484+ runs-on : ubuntu-22.04
485+ timeout-minutes : 30
486+ strategy :
487+ fail-fast : true
488+ env :
489+ VALGRIND : 0
490+ GENERATE_EXAMPLES : 1
491+ PYTEST_OPTS : --timeout=1200
492+ CFG : compile-gcc
493+ TEST_NETWORK : regtest
494+ needs :
495+ - compile
496+ steps :
497+ - name : Checkout
498+ uses : actions/checkout@v4
499+ - name : Set up Python 3.10
500+ uses : actions/setup-python@v5
501+ with :
502+ python-version : ' 3.10'
503+ - name : Install dependencies
504+ run : |
505+ pip3 install --user pip wheel poetry
506+ poetry install
507+ - name : Install bitcoind
508+ env :
509+ TEST_NETWORK : regtest
510+ CFG : compile-gcc
511+ run : .github/scripts/install-bitcoind.sh
512+ - name : Download build
513+ uses : actions/download-artifact@v4
514+ env :
515+ CFG : compile-gcc
516+ with :
517+ name : cln-${CFG}.tar.bz2
518+ - name : Unpack pre-built CLN
519+ env :
520+ CFG : compile-gcc
521+ run : |
522+ tar -xaf cln-${CFG}.tar.bz2
523+ - name : Test
524+ run : |
525+ make -j $(nproc) check-doc-examples
526+
483527 min-btc-support :
484528 name : Test minimum supported BTC v${{ matrix.MIN_BTC_VERSION }} with ${{ matrix.NAME }}
485529 runs-on : ubuntu-22.04
@@ -582,6 +626,7 @@ jobs:
582626 - check-units
583627 - integration-valgrind
584628 - integration-sanitizers
629+ - update-docs-examples
585630 - min-btc-support
586631 - check-flake
587632 steps :
Original file line number Diff line number Diff line change @@ -595,7 +595,7 @@ check-doc-examples: update-doc-examples
595595 git diff --exit-code HEAD
596596
597597# For those without working cppcheck
598- 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
598+ 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
599599
600600check-source : check-source-no-cppcheck
601601
You can’t perform that action at this time.
0 commit comments