Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/integration-tests-events-rabbitmq.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: RabbitMQ Integration Tests
name: Integration Tests

on: [ push, pull_request ]

Expand Down Expand Up @@ -28,7 +28,30 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Enable caching for bitcoind
id: cache-bitcoind
uses: actions/cache@v4
with:
path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }}
key: bitcoind-${{ runner.os }}-${{ runner.arch }}

- name: Download bitcoind
if: steps.cache-bitcoind.outputs.cache-hit != 'true'
run: |
source ./scripts/download_bitcoind.sh
mkdir -p bin
mv "$BITCOIND_EXE" bin/bitcoind-${{ runner.os }}-${{ runner.arch }}

- name: Set bitcoind environment variable
run: echo "BITCOIND_EXE=$( pwd )/bin/bitcoind-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"

- name: Run RabbitMQ integration tests
run: cargo test --features integration-tests-events-rabbitmq --verbose --color=always -- --nocapture
env:
RUST_BACKTRACE: 1

- name: Run end-to-end tests
run: cargo test --manifest-path e2e-tests/Cargo.toml --verbose --color=always -- --test-threads=4 --nocapture
env:
RUST_BACKTRACE: 1
BITCOIND_SKIP_DOWNLOAD: 1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/*/target
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
resolver = "2"
members = [ "ldk-server-cli", "ldk-server-client", "ldk-server-protos", "ldk-server"]
members = ["ldk-server-cli", "ldk-server-client", "ldk-server-protos", "ldk-server"]
exclude = ["e2e-tests"]

[profile.release]
panic = "abort"
Expand Down
Loading