test(ci): add regtest environment with Esplora for integration tests#26
Merged
darioAnongba merged 1 commit intomainfrom Feb 25, 2026
Merged
test(ci): add regtest environment with Esplora for integration tests#26darioAnongba merged 1 commit intomainfrom
darioAnongba merged 1 commit intomainfrom
Conversation
darioAnongba
commented
Feb 25, 2026
c473ed0 to
c20f0d3
Compare
Add a Docker Compose-based regtest environment using blockstream/esplora for deterministic integration tests independent of external networks. Changes: - Refactor esplora.test.ts to be network-agnostic via NETWORK and ESPLORA_URL environment variables (defaults to Mutinynet signet) - Send to wallet's own address instead of hardcoded external address - PSBT template test conditionally runs on signet only - Add integration-test/ with docker-compose.yml, init-esplora.sh, and run-integration.sh for local regtest orchestration - Add regtest-integration CI job with 3-minute Esplora startup timeout Closes #16
c20f0d3 to
af7b89e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a Docker Compose-based regtest environment using
blockstream/esplorafor deterministic integration tests that don't depend on external networks (Mutinynet signet).Changes
New files
integration-test/docker-compose.yml— Esplora service running on regtestintegration-test/init-esplora.sh— Funds the test wallet's first external address viabitcoin-cliintegration-test/run-integration.sh— Local orchestration script (start Esplora, fund wallet, run tests, teardown)tests/node/integration/regtest.test.ts— Regtest integration tests mirroring the existing Mutinynet-basedesplora.test.tsCI changes
regtest-integrationjob added tobuild-lint-test.ymlworkflowTest coverage
Reference
Based on the pattern from MetaMask/snap-bitcoin-wallet.
Closes #16