Skip to content

Commit

Permalink
add lint ci and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovahs committed May 19, 2024
1 parent 63868dd commit 10cf9ef
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: lint

on:
pull_request:
branches:
- '**'

env:
CARGO_TERM_COLOR: always

jobs:
fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt

- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Run cargo fmt
run: cargo +nightly fmt -- --check
2 changes: 1 addition & 1 deletion crates/services/bls_aggregation/src/bls_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl BlsAggregatorService {
avs_registry_service: avs_registry_service,
}
}

pub(crate) async fn write(
&self,
) -> RwLockWriteGuard<'_, HashMap<TaskIndex, UnboundedSender<SignedTaskResponseDigest>>> {
Expand Down

0 comments on commit 10cf9ef

Please sign in to comment.