Add lightning invoice fuzzing to CI
[rust-lightning] / .github / workflows / build.yml
index 09cef0ffceb5c7d34c26c79f1f875b56a6a151f4..a379d1cd64ba73c4c07c57336f698ce245214724 100644 (file)
@@ -153,11 +153,14 @@ jobs:
             echo "Bad hash"
             exit 1
           fi
-      - name: Run benchmarks on Rust ${{ matrix.toolchain }}
+      - name: Test with Network Graph on Rust ${{ matrix.toolchain }}
         run: |
           cd lightning
-          cargo bench --features unstable
+          RUSTFLAGS="--cfg=require_route_graph_test" cargo test
           cd ..
+      - name: Run benchmarks on Rust ${{ matrix.toolchain }}
+        run: |
+          cargo bench --features unstable
 
   check_commits:
     runs-on: ubuntu-latest
@@ -204,7 +207,9 @@ jobs:
       - name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
         run: cd fuzz && RUSTFLAGS="--cfg=fuzzing" cargo test --verbose --color always
       - name: Run fuzzers
-        run: cd fuzz && ./ci-fuzz.sh
+        run: cd fuzz && ./ci-fuzz.sh && cd ..
+      - name: Run lightning-invoice fuzzers
+        run: cd lightning-invoice/fuzz && RUSTFLAGS="--cfg=fuzzing" cargo test --verbose && ./ci-fuzz.sh
 
   linting:
     runs-on: ubuntu-latest