Skip to content

chore: update deps

chore: update deps #51

Workflow file for this run

name: Rust Lint
on:
push:
paths:
- 'ledgerflow-balancer/**'
- 'ledgerflow-bot/**'
- 'ledgerflow-eth-cli/**'
- 'ledgerflow-indexer/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/rust_lint.yml'
pull_request:
paths:
- 'ledgerflow-balancer/**'
- 'ledgerflow-bot/**'
- 'ledgerflow-eth-cli/**'
- 'ledgerflow-indexer/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/rust_lint.yml'
workflow_dispatch:
jobs:
rust-lint:
name: Rust Lint Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
run: |
cargo fmt --all -- --check
- name: Run clippy
run: |
cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: |
cargo test --all-features