forked from lightningdevkit/ldk-node
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.63 KB
/
Copy patheclair-integration.yml
File metadata and controls
50 lines (41 loc) · 1.63 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI Checks - Eclair Integration Tests
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-eclair:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Start bitcoind and electrs
run: docker compose up -d
- name: Wait for bitcoind to be healthy
run: |
for i in $(seq 1 30); do
if docker exec ldk-node-bitcoin-1 bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass getblockchaininfo > /dev/null 2>&1; then
echo "bitcoind is ready"
break
fi
echo "Waiting for bitcoind... ($i/30)"
sleep 2
done
- name: Create Eclair wallet on bitcoind
run: |
docker exec ldk-node-bitcoin-1 bitcoin-cli -regtest -rpcuser=user -rpcpassword=pass createwallet eclair || true
- name: Start Eclair
run: docker compose --profile eclair up -d
- name: Wait for Eclair to be ready
run: |
for i in $(seq 1 60); do
if curl -s -u :eclairpassword http://127.0.0.1:8080/getinfo > /dev/null 2>&1; then
echo "Eclair is ready"
break
fi
echo "Waiting for Eclair... ($i/60)"
sleep 5
done
curl -s -u :eclairpassword http://127.0.0.1:8080/getinfo || { echo "Eclair failed to start"; docker logs ldk-node-eclair-1; exit 1; }
- name: Run Eclair integration tests
run: RUSTFLAGS="--cfg eclair_test" cargo test --test integration_tests_eclair -- --test-threads=1