Repository: mgeisler/textwrap (language: rust)

Issue:
Integrate fuzz tests in CI
We could run the [fuzz tests](https://github.com/mgeisler/textwrap/tree/master/fuzz/fuzz_targets) for, say, 10 seconds on every PR. It looks like the command to run is

```sh
$ cargo fuzz run fill_first_fit -- -max_total_time=10
```

We would need to figure out how to run all the fuzz targets, preferably in parallel.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 25173e07..2ead0874 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -93,6 +93,22 @@ jobs:
       - name: Lint for left-over debug prints
         run: cargo clippy -- -D clippy::print_stdout -D clippy::print_stderr
 
+  fuzz:
+    name: Fuzz test
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v2
+
+      - name: Install nightly Rust
+        run: rustup default nightly
+
+      - name: Install cargo-fuzz
+        run: cargo install cargo-fuzz
+
+      - name: 30 second fuzz test
+        run: cargo fuzz run fill_first_fit -- -max_total_time=30
+
   wasm-build:
     name: Build Wasm demo
     runs-on: ubuntu-latest


Test patch: