From 0a7956b6d487c3843fd3ae570e543bd383ef57ed Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Wed, 27 Nov 2024 14:55:01 -0800 Subject: [PATCH] ci: Add `GENERATE_EXAMPLES` env in CI & docker build script --- .github/workflows/ci.yaml | 6 ++++-- contrib/docker/scripts/build.sh | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c55922f00..7c87cf343 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,8 +24,6 @@ jobs: timeout-minutes: 30 env: BOLTDIR: bolts - VALGRIND: 0 - PYTEST_OPTS: --timeout=1200 strategy: fail-fast: true steps: @@ -87,6 +85,10 @@ jobs: - name: Configure run: ./configure --enable-debugbuild --enable-rust - name: Check source + env: + VALGRIND: 0 + GENERATE_EXAMPLES: 1 + PYTEST_OPTS: --timeout=1200 run: make check-source BASE_REF="origin/${{ github.base_ref }}" - name: Check Generated Files have been updated run: make check-gen-updated diff --git a/contrib/docker/scripts/build.sh b/contrib/docker/scripts/build.sh index 3037ae66a..b59efffa0 100755 --- a/contrib/docker/scripts/build.sh +++ b/contrib/docker/scripts/build.sh @@ -18,6 +18,7 @@ export TIMEOUT=900 export VALGRIND=${VALGRIND:-0} export FUZZING=${FUZZING:-0} export LIGHTNINGD_POSTGRES_NO_VACUUM=1 +export GENERATE_EXAMPLES=${GENERATE_EXAMPLES:-0} pip3 install --upgrade pip pip3 install --user poetry