Skip to content

Commit 45c95dd

Browse files
committed
Update CI workflow to include hrn_tests coverage
Update the GitHub Actions workflow to include coverage for the new hrn_tests feature across multiple build configurations. This ensures that the DNSSEC override logic is validated in both standard Rust and UniFFI-enabled environments. Including these flags in CI prevents regressions where testing-specific code might break the primary build or fail to compile due to type mismatches between the LDK and FFI wrappers. Testing both feature combinations (with and without UniFFI) guarantees that the abstraction for HumanReadableName remains consistent across all supported platforms and integration layers.
1 parent a419dbe commit 45c95dd

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI Checks - HRN Integration Tests
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
hrn_integration:
11+
name: HRN Tests - Ubuntu Stable
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout source code
16+
uses: actions/checkout@v3
17+
- name: Install Rust stable toolchain
18+
run: |
19+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
20+
- name: Enable caching for bitcoind
21+
id: cache-bitcoind
22+
uses: actions/cache@v4
23+
with:
24+
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
25+
key: bitcoind-${{ runner.os }}-${{ runner.arch }}
26+
- name: Enable caching for electrs
27+
id: cache-electrs
28+
uses: actions/cache@v4
29+
with:
30+
path: bin/electrs-${{ runner.os }}-${{ runner.arch }}
31+
key: electrs-${{ runner.os }}-${{ runner.arch }}
32+
- name: Download bitcoind/electrs
33+
if: "steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true'"
34+
run: |
35+
source ./scripts/download_bitcoind_electrs.sh
36+
mkdir -p bin
37+
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
38+
mv "$ELECTRS_EXE" bin/electrs-${{ runner.os }}-${{ runner.arch }}
39+
- name: Set bitcoind/electrs environment variables
40+
run: |
41+
echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
42+
echo "ELECTRS_EXE=$( pwd )/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
43+
- name: Run HRN Integration Tests
44+
run: |
45+
RUSTFLAGS="--cfg no_download --cfg hrn_tests $RUSTFLAGS" cargo test --test integration_tests_hrn

0 commit comments

Comments
 (0)