Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/cln-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y socat
- name: Create temporary directory for CLN data
id: create-temp-dir
run: echo "CLN_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV

- name: Start bitcoind, electrs, and lightningd
run: docker compose -f docker-compose-cln.yml up -d

- name: Forward lightningd RPC socket
run: |
docker exec ldk-node-cln-1 sh -c "socat -d -d TCP-LISTEN:9937,fork,reuseaddr UNIX-CONNECT:/root/.lightning/regtest/lightning-rpc&"
socat -d -d UNIX-LISTEN:/tmp/lightning-rpc,reuseaddr,fork TCP:127.0.0.1:9937&

- name: Run CLN integration tests
run: RUSTFLAGS="--cfg cln_test" cargo test --test integration_tests_cln
run: |
CLN_SOCK=$CLN_DATA_DIR/lightning-rpc RUSTFLAGS="--cfg cln_test" cargo test --test integration_tests_cln
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ clightningrpc = { version = "0.3.0-beta.8", default-features = false }

[target.'cfg(lnd_test)'.dev-dependencies]
lnd_grpc_rust = { version = "2.10.0", default-features = false }
tokio = { version = "1.37", features = ["fs"] }

[build-dependencies]
uniffi = { version = "0.28.3", features = ["build"], optional = true }
Expand Down
8 changes: 6 additions & 2 deletions docker-compose-cln.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,24 @@ services:
- bitcoin-electrs

cln:
image: blockstream/lightningd:v23.08
image: blockstream/lightningd:v25.05
platform: linux/amd64
depends_on:
bitcoin:
condition: service_healthy
command:
[
"--network=regtest",
"--bitcoin-rpcconnect=bitcoin",
"--bitcoin-rpcport=18443",
"--bitcoin-rpcuser=user",
"--bitcoin-rpcpassword=pass",
"--regtest",
"--experimental-anchors",
"--rpc-file=/tmp/lightning-rpc",
"--rpc-file-mode=0666",
]
volumes:
- ${CLN_DATA_DIR}:/tmp
ports:
- "19846:19846"
- "9937:9937"
Expand Down
Loading
Loading