Add commands from CONTRIBUTING.md to Makefile and update ci (#6141)

Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
This commit is contained in:
Emilia Hane
2024-01-22 11:42:06 +01:00
committed by GitHub
parent ea36b58cb2
commit ade779754a
7 changed files with 77 additions and 26 deletions

View File

@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always
jobs:
clippy:
clippy-binaries:
name: clippy / ${{ matrix.network }}
runs-on: ubuntu-latest
timeout-minutes: 30
@ -28,7 +28,22 @@ jobs:
with:
cache-on-failure: true
- run:
cargo clippy --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }}" --lib --tests --benches --examples
cargo clippy --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }} asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
env:
RUSTFLAGS: -D warnings
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run:
cargo clippy --workspace --lib --examples --tests --benches --all-features
env:
RUSTFLAGS: -D warnings
@ -98,7 +113,7 @@ jobs:
name: lint success
runs-on: ubuntu-latest
if: always()
needs: [clippy, docs, fmt, grafana]
needs: [clippy-binaries, clippy, docs, fmt, grafana]
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed