Skip to content

Commit fb7960e

Browse files
committed
Add fuzz testing
1 parent c732a27 commit fb7960e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,23 @@ jobs:
4444
- name: Test on Rust ${{ matrix.toolchain }}
4545
if: ${{ matrix.build-net-tokio }} != true
4646
run: RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning
47+
48+
fuzz:
49+
runs-on: ubuntu-latest
50+
env:
51+
TOOLCHAIN: stable
52+
steps:
53+
- name: Checkout source code
54+
uses: actions/checkout@v2
55+
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
56+
uses: actions-rs/toolchain@v1
57+
with:
58+
toolchain: ${{ env.TOOLCHAIN }}
59+
override: true
60+
profile: minimal
61+
- name: Install dependencies for honggfuzz
62+
run: sudo apt install build-essential binutils-dev libunwind-dev
63+
- name: Fuzz test on Rust ${{ matrix.TOOLCHAIN }}
64+
run: cd fuzz && cargo test --verbose
65+
- name: Generate fuzz report
66+
run: cd fuzz && ./ci-fuzz.sh

0 commit comments

Comments
 (0)