Add CI for integration test #5
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Install Bitcoin Dependencies | |
run: sudo apt-get install build-essential cmake pkgconf python3 libevent-dev libboost-dev capnproto libcapnp-dev | |
- name: Checkout Bitcoin Core v30.0 | |
run: git clone --depth 1 --branch 30.x https://github.com/bitcoin/bitcoin.git | |
- name: Build and Install Bitcoin Core | |
run: cd bitcoin && cmake -B build -DENABLE_IPC=ON -DENABLE_WALLET=OFF && cmake --build build -j 16 | |
- name: Run Bitcoin Core Daemon | |
run: ./build/bin/bitcoin-node -chain=regtest -ipcbind=unix -debug=ipc -daemon | |
- name: Run Test Suite | |
run: cargo test |