Skip to content

Commit

Permalink
Add lint check using cargo hack
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen-stig committed Aug 6, 2024
1 parent f4e6a09 commit 5d90bdd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,23 @@ jobs:
- name: Ensure no arbitrary or proptest dependency on default build
run: cargo tree --package reth -e=features,no-dev | grep -Eq "arbitrary|proptest" && exit 1 || exit 0

# Checks that selected rates can compile with power set of features
features:
name: features
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
- name: cargo install cargo-hack
uses: taiki-e/install-action@cargo-hack
- run: make check-features
env:
RUSTFLAGS: -D warnings

lint-success:
name: lint success
runs-on: ubuntu-latest
Expand All @@ -183,6 +200,7 @@ jobs:
- codespell
- grafana
- no-test-deps
- features
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
Expand Down

0 comments on commit 5d90bdd

Please sign in to comment.