mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix/ci: check individual crates in ci, fix features (#6472)
This commit is contained in:
17
.github/workflows/lint.yml
vendored
17
.github/workflows/lint.yml
vendored
@ -46,11 +46,22 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
cache-on-failure: true
|
||||
- run:
|
||||
cargo clippy --workspace --lib --examples --tests --benches --all-features
|
||||
- run: cargo clippy --workspace --lib --examples --tests --benches --all-features
|
||||
env:
|
||||
RUSTFLAGS: -D warnings
|
||||
|
||||
crate-checks:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: taiki-e/install-action@cargo-hack
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
cache-on-failure: true
|
||||
- run: cargo hack check
|
||||
|
||||
msrv:
|
||||
name: MSRV / ${{ matrix.network }}
|
||||
runs-on: ubuntu-latest
|
||||
@ -120,7 +131,7 @@ jobs:
|
||||
name: lint success
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
needs: [clippy-binaries, clippy, docs, fmt, grafana]
|
||||
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, grafana]
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Decide whether the needed jobs succeeded or failed
|
||||
|
||||
@ -14,17 +14,16 @@ workspace = true
|
||||
[dependencies]
|
||||
# ethereum
|
||||
alloy-chains.workspace = true
|
||||
alloy-primitives = { workspace = true, features = ["rand", "rlp"] }
|
||||
alloy-rlp = { workspace = true, features = ["arrayvec"] }
|
||||
alloy-primitives = { workspace = true, features = ["serde", "rand", "rlp"] }
|
||||
alloy-rlp = { workspace = true, features = ["arrayvec", "derive"] }
|
||||
|
||||
# used for forkid
|
||||
crc = "3"
|
||||
|
||||
# misc
|
||||
serde.workspace = true
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
thiserror.workspace = true
|
||||
|
||||
|
||||
# arbitrary utils
|
||||
arbitrary = { workspace = true, features = ["derive"], optional = true }
|
||||
proptest = { workspace = true, optional = true }
|
||||
@ -36,7 +35,6 @@ arbitrary = { workspace = true, features = ["derive"] }
|
||||
proptest.workspace = true
|
||||
proptest-derive.workspace = true
|
||||
|
||||
|
||||
[features]
|
||||
arbitrary = ["dep:arbitrary", "dep:proptest", "dep:proptest-derive"]
|
||||
optimism = []
|
||||
|
||||
Reference in New Issue
Block a user