Skip to content

Commit c042a67

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 f59bd01 commit c042a67

File tree

1 file changed

+46
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)