Skip to content

Commit 52181b8

Browse files
committed
Add LDK Node integration test
We add a simple workflow to our CI that runs LDK Node tests to ensure LDK changes don't break LDK Node.
1 parent 2d6e017 commit 52181b8

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: LDK Node 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+
build-and-test:
11+
runs-on: self-hosted
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
with:
17+
path: rust-lightning
18+
- name: Checkout LDK Node
19+
uses: actions/checkout@v3
20+
with:
21+
repository: lightningdevkit/ldk-node
22+
path: ldk-node
23+
- name: Install Rust stable toolchain
24+
run: |
25+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
26+
27+
- name: Run LDK Node Integration tests
28+
run: |
29+
cd ldk-node
30+
31+
cat <<EOF >> Cargo.toml
32+
[patch.crates-io]
33+
lightning = { path = "../rust-lightning/lightning" }
34+
lightning-types = { path = "../rust-lightning/lightning-types" }
35+
lightning-invoice = { path = "../rust-lightning/lightning-invoice" }
36+
lightning-net-tokio = { path = "../rust-lightning/lightning-net-tokio" }
37+
lightning-persister = { path = "../rust-lightning/lightning-persister" }
38+
lightning-background-processor = { path = "../rust-lightning/lightning-background-processor" }
39+
lightning-rapid-gossip-sync = { path = "../rust-lightning/lightning-rapid-gossip-sync" }
40+
lightning-block-sync = { path = "../rust-lightning/lightning-block-sync" }
41+
lightning-transaction-sync = { path = "../rust-lightning/lightning-transaction-sync" }
42+
lightning-liquidity = { path = "../rust-lightning/lightning-liquidity" }
43+
lightning-macros = { path = "../rust-lightning/lightning-macros" }
44+
EOF
45+
46+
cargo check
47+
cargo test
48+
cargo check --features uniffi

0 commit comments

Comments
 (0)