Skip to content

Commit a8e7340

Browse files
committed
Build and run fuzzers as part of the CI pipeline
1 parent f8a3cfc commit a8e7340

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ jobs:
2020
- name: Test
2121
run: cargo test --verbose
2222

23+
fuzz:
24+
name: fuzz
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Install Rust
29+
uses: dtolnay/rust-toolchain@nightly
30+
- name: Sanity check fuzzers
31+
run: |
32+
cargo install cargo-fuzz
33+
cd fuzz
34+
cargo fuzz run parse_parameters -- -max_total_time=5
35+
cargo fuzz run parse_error_causes -- -max_total_time=5
36+
cargo fuzz run parse_packet -- -max_total_time=5
37+
2338
check-rustfmt:
2439
name: check (rustfmt)
2540
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)