From 8ac25291e955a87f8a97348f6577a91d716a8af0 Mon Sep 17 00:00:00 2001 From: Vihiga Tyonum Date: Fri, 21 Feb 2025 13:42:43 +0100 Subject: [PATCH] ci: update the CI workflow - remove unavailable features in code_coverage workflow - add more features for the cont_integration workflow - update local compilation test script [Ticket: X] --- .github/workflows/code_coverage.yml | 11 ++++------- .github/workflows/cont_integration.yml | 8 +++++++- Cargo.toml | 2 +- ci/test_features.sh | 4 ++++ 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index 135203f..dad6ffd 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -32,18 +32,15 @@ jobs: - name: Test Electrum run: cargo test --features electrum - - name: Test Esplora-Ureq - run: cargo test --features esplora-ureq - - - name: Test Esplora-reqwest - run: cargo test --features esplora-reqwest + - name: Test Esplora + run: cargo test --features esplora # Temporarily disable compact filters #- name: Test Compact Filters # run: cargo test --features compact_filters - - name: Test RPC - run: cargo test --features rpc + # - name: Test RPC + # run: cargo test --features rpc - id: coverage name: Generate coverage diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index 7ce1143..c4e8735 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -19,6 +19,12 @@ jobs: - esplora,sqlite - esplora - compiler,sqlite + - compiler + - verify + - verify esplora + - verify esplora compiler + - verify compiler electrum + - verify esplora compiler steps: - name: Checkout uses: actions/checkout@v2 @@ -79,7 +85,7 @@ jobs: - name: Update toolchain run: rustup update - name: Build - run: cargo build --target wasm32-unknown-unknown --no-default-features --features esplora-reqwest,async-interface,compiler,dev-getrandom-wasm + run: cargo build --target wasm32-unknown-unknown --no-default-features --features esplora,compiler,dev-getrandom-wasm fmt: name: Rust fmt diff --git a/Cargo.toml b/Cargo.toml index 81c06cf..1b0e7e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ sqlite = ["bdk_wallet/rusqlite"] cbf = ["bdk_kyoto"] electrum = ["bdk_electrum"] esplora = ["bdk_esplora"] -rpc = ["bdk_bitcoind_rpc"] +# rpc = ["bdk_bitcoind_rpc"] temporarily disabled # Use this to consensus verify transactions at sync time verify = [] diff --git a/ci/test_features.sh b/ci/test_features.sh index 826a8d6..caf67c9 100755 --- a/ci/test_features.sh +++ b/ci/test_features.sh @@ -17,6 +17,10 @@ feature_combinations=( "sqlite esplora" "sqlite verify" "sqlite compiler" + "verify esplora compiler" + "verify esplora repl" + "verify compiler repl" + "verify esplora compiler repl" ) for features in "${feature_combinations[@]}"; do -- 2.49.0