ci: fix fuzz tests (#243)

* ci: fix fuzz tests

* ci: move fuzz to own job

* ci: improve fuzz job speed
This commit is contained in:
Bjerg
2022-11-23 21:22:10 +01:00
committed by GitHub
parent d6a11c7f48
commit 7c2ee1ba3a
2 changed files with 30 additions and 3 deletions

View File

@ -34,6 +34,26 @@ jobs:
command: nextest
args: run --locked --workspace --all-features
- name: Install fuzzer
run: cargo install cargo-test-fuzz afl
fuzz:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install fuzzer
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-test-fuzz afl
- name: Run fuzz tests
run: |
./.github/scripts/fuzz.sh reth-primitives