Skip to content

Commit 7c400d9

Browse files
ci: add GitHub Actions workflow for LND integration tests
Configures CI to run LND tests using the Docker Compose environment. Closes lightningdevkit#505
1 parent cdccf68 commit 7c400d9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: .github/workflows/lnd-integration.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI Checks - LND Integration Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check-lnd:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v4
11+
12+
- name: Create temporary directory for LND data
13+
id: create-temp-dir
14+
run: echo "LND_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
15+
16+
- name: Start bitcoind, electrs, and LND
17+
run: docker compose -f docker-compose-lnd.yml up -d
18+
env:
19+
LND_DATA_DIR: ${{ env.LND_DATA_DIR }}
20+
21+
- name: Run LND integration tests
22+
run: LND_CERT_PATH=$LND_DATA_DIR/tls.cert LND_MACAROON_PATH=$LND_DATA_DIR/data/chain/bitcoin/regtest/admin.macaroon
23+
RUSTFLAGS="--cfg lnd_test" cargo test --test integration_tests_lnd -- --exact --show-output
24+
env:
25+
LND_DATA_DIR: ${{ env.LND_DATA_DIR }}

0 commit comments

Comments
 (0)