Skip to content

ci: run also the reorg crash test in ci #13

ci: run also the reorg crash test in ci

ci: run also the reorg crash test in ci #13

Workflow file for this run

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Download bitcoind 28.0
run: curl -sSL https://bitcoincore.org/bin/bitcoin-core-28.0/bitcoin-28.0-x86_64-linux-gnu.tar.gz | tar -xz
- name: Download elementsd 23.2.4
run: curl -sSL https://github.com/ElementsProject/elements/releases/download/elements-23.2.4/elements-23.2.4-x86_64-linux-gnu.tar.gz | tar -xz
- name: Run tests
run: cargo test
- name: Run ignored tests
run: cargo test -- --ignored
- name: Run reorg crash test
run: cargo test --features "test_env,db,reorg_crash_test" test_bitcoin_reorg_data_not_persisted -- --exact
env:
BITCOIND_EXEC: ${{ github.workspace }}/bitcoin-28.0/bin/bitcoind
ELEMENTSD_EXEC: ${{ github.workspace }}/elements-23.2.4/bin/elementsd
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check
- name: Check benches
run: cargo check --benches
- name: Check tests
run: cargo check --tests
- name: Check no default features
run: cargo check --no-default-features
- name: Check no default features with test_env
run: cargo check --no-default-features --features test_env
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
extra_nix_config: |
trusted-public-keys = nix.casatta.it:HseKZh7436/vKXfZDBHbhr7wwAkzjLwY5BIq+OOrITg= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://nix.casatta.it https://cache.nixos.org/
- run: nix build .