Skip to content

Commit

Permalink
add CI cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Jun 1, 2021
1 parent 166f90c commit ca6c6e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,18 @@ jobs:
run: curl https://bitcoincore.org/bin/bitcoin-core-$BITCOIN_VER/bitcoin-$BITCOIN_VER-x86_64-linux-gnu.tar.gz | tar -xvz bitcoin-$BITCOIN_VER/bin/bitcoind
- name: Test electrsd
run: RUST_LOG=electrs=debug cargo test --verbose ${{ matrix.features }}

cosmetics:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt, clippy
- name: fmt
run: cargo fmt -- --check
- name: clippy
run: cargo clippy -- -D warnings
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,9 @@ mod test {
};
assert_eq!(header.height, 101);


// launch another instance to check there are no fixed port used
let electrsd = ElectrsD::new(electrs_exe.clone(), &bitcoind, true, false).unwrap();
let header = electrsd.client.block_headers_subscribe().unwrap();
assert_eq!(header.height, 101);

}
}

0 comments on commit ca6c6e6

Please sign in to comment.