fix/ci: check individual crates in ci, fix features (#6472)

This commit is contained in:
DaniPopes
2024-02-07 21:35:01 +02:00
committed by GitHub
parent 29e8aab08a
commit 1f90f0a819
2 changed files with 17 additions and 8 deletions

View File

@ -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