Skip to content

Commit

Permalink
Add fuzzing to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Dec 22, 2023
1 parent ba53a5d commit 3a8a04c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check project
name: CI

on:
push:
Expand Down Expand Up @@ -28,4 +28,22 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy -- -D warnings

fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

- name: Install cargo fuzz
uses: taiki-e/install-action@70233fe3d27d863712ee34eede2087e36bde6b5e
with:
tool: cargo-fuzz

- name: Smoke-test fuzz targets
run: |
cargo fuzz build
for target in $(cargo fuzz list) ; do
cargo fuzz run --sanitizer none $target -- -max_total_time=10
done

0 comments on commit 3a8a04c

Please sign in to comment.