Skip to content

Fix a few clippy nits #1

Fix a few clippy nits

Fix a few clippy nits #1

Workflow file for this run

name: electrs
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *" # once a day
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
build-args:
[
--locked --no-default-features,
--locked,
--locked --features metrics_process,
]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
profile: minimal
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.build-args }} --all
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
integration:
name: Integration
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: docker build -f Dockerfile.ci . --rm -t electrs:tests
- name: Test
run: docker run -v $PWD/contrib/:/contrib -v $PWD/tests/:/tests --rm electrs:tests bash /tests/run.sh