Skip to content
Open
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
23 changes: 23 additions & 0 deletions .github/workflows/integration-tests-events-rabbitmq.yml
Original file line number Diff line number Diff line change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit odd to have them live only on the rabbit-mq job. If we want to test rabbit-mq, maybe the workflow itself should be renamed?

run: cargo test --manifest-path e2e-tests/Cargo.toml --verbose --color=always -- --test-threads=4 --nocapture
env:
RUST_BACKTRACE: 1
BITCOIND_SKIP_DOWNLOAD: 1
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