Skip to content

Commit 61fd60e

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 7412603 commit 61fd60e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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: Set RUSTFLAGS to deny warnings
21+
run: echo "RUSTFLAGS=-D warnings" >> "$GITHUB_ENV"
22+
- name: Enable caching for bitcoind
23+
id: cache-bitcoind
24+
uses: actions/cache@v4
25+
with:
26+
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
27+
key: bitcoind-${{ runner.os }}-${{ runner.arch }}
28+
- name: Enable caching for electrs
29+
id: cache-electrs
30+
uses: actions/cache@v4
31+
with:
32+
path: bin/electrs-${{ runner.os }}-${{ runner.arch }}
33+
key: electrs-${{ runner.os }}-${{ runner.arch }}
34+
- name: Download bitcoind/electrs
35+
if: "steps.cache-bitcoind.outputs.cache-hit != 'true' || steps.cache-electrs.outputs.cache-hit != 'true'"
36+
run: |
37+
source ./scripts/download_bitcoind_electrs.sh
38+
mkdir -p bin
39+
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
40+
mv "$ELECTRS_EXE" bin/electrs-${{ runner.os }}-${{ runner.arch }}
41+
- name: Set bitcoind/electrs environment variables
42+
run: |
43+
echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
44+
echo "ELECTRS_EXE=$( pwd )/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
45+
- name: Run HRN Integration Tests
46+
run: |
47+
RUSTFLAGS="--cfg no_download --cfg hrn_tests $RUSTFLAGS" cargo test --test integration_tests_hrn

0 commit comments

Comments
 (0)