Skip to content

Commit 5f9a2a7

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 5f9a2a7

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
24+
- name: Run LDK Node Integration tests
25+
run: |
26+
cd ldk-node
27+
28+
cat <<EOF >> Cargo.toml
29+
[patch.crates-io]
30+
lightning = { path = "../rust-lightning/lightning" }
31+
lightning-types = { path = "../rust-lightning/lightning-types" }
32+
lightning-invoice = { path = "../rust-lightning/lightning-invoice" }
33+
lightning-net-tokio = { path = "../rust-lightning/lightning-net-tokio" }
34+
lightning-persister = { path = "../rust-lightning/lightning-persister" }
35+
lightning-background-processor = { path = "../rust-lightning/lightning-background-processor" }
36+
lightning-rapid-gossip-sync = { path = "../rust-lightning/lightning-rapid-gossip-sync" }
37+
lightning-block-sync = { path = "../rust-lightning/lightning-block-sync" }
38+
lightning-transaction-sync = { path = "../rust-lightning/lightning-transaction-sync" }
39+
lightning-liquidity = { path = "../rust-lightning/lightning-liquidity" }
40+
lightning-macros = { path = "../rust-lightning/lightning-macros" }
41+
EOF
42+
43+
cargo check
44+
cargo test
45+
cargo check --features uniffi

0 commit comments

Comments
 (0)