forked from lightningdevkit/ldk-node
-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (20 loc) · 843 Bytes
/
cln.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Continuous Integration Checks - CLN
on: [push, pull_request]
jobs:
check-cln:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y socat
- 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