mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(ci): run check and clippy on tests and benches too (#4587)
This commit is contained in:
20
.github/workflows/bench.yml
vendored
20
.github/workflows/bench.yml
vendored
@ -59,26 +59,10 @@ jobs:
|
||||
run: |
|
||||
./pr/.github/scripts/compare_iai.sh
|
||||
|
||||
# Checks that benchmarks not run in CI compile
|
||||
bench-check:
|
||||
name: check
|
||||
runs-on:
|
||||
group: Reth
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Check if benchmarks build
|
||||
run: cargo check --workspace --benches --all-features
|
||||
|
||||
bench-success:
|
||||
if: always()
|
||||
name: bench success
|
||||
needs: bench-check
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Decide whether the needed jobs succeeded or failed
|
||||
uses: re-actors/alls-green@release/v1
|
||||
with:
|
||||
jobs: ${{ toJSON(needs) }}
|
||||
# Note: This check is a dummy because we don't have any bench checks enabled.
|
||||
- run: echo OK.
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all --all-features
|
||||
args: --all --all-features --benches --tests
|
||||
|
||||
- name: cargo fmt
|
||||
uses: actions-rs/cargo@v1
|
||||
@ -44,7 +44,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: --all --all-features
|
||||
args: --all --all-features --benches --tests
|
||||
|
||||
doc-lint:
|
||||
name: doc lint
|
||||
|
||||
Reference in New Issue
Block a user