Skip to content

Commit 4e76a1f

Browse files
committed
ci: run fuzz regression tests
There are several benefits of doing this: - prevent fuzz target bit rot - more test coverage in CI - greater visibility of fuzz tests, encouraging contributions to the seed corpus and tests themselves
1 parent 6d76642 commit 4e76a1f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,40 @@ jobs:
9191
./configure
9292
make -j $(nproc) check-units installcheck
9393
94+
check-fuzz:
95+
name: Run fuzz regression tests
96+
runs-on: ubuntu-22.04
97+
env:
98+
COMPAT: 1
99+
DEVELOPER: 1
100+
EXPERIMENTAL_FEATURES: 1
101+
ASAN: 1
102+
UBSAN: 1
103+
VALGRIND: 0
104+
needs:
105+
- prebuild
106+
steps:
107+
- name: Checkout
108+
uses: actions/checkout@v3
109+
110+
- name: Set up Python 3.7
111+
uses: actions/setup-python@v4
112+
with:
113+
python-version: 3.7
114+
115+
- name: Install dependencies
116+
run: |
117+
bash -x .github/scripts/setup.sh
118+
pip install -U pip wheel poetry
119+
# Export and then use pip to install into the current env
120+
poetry export -o /tmp/requirements.txt --without-hashes --with dev
121+
pip install -r /tmp/requirements.txt
122+
123+
- name: Build
124+
run: |
125+
./configure --enable-fuzzing CC=clang
126+
make -j $(nproc) check-fuzz
127+
94128
compile:
95129
name: Compile CLN ${{ matrix.cfg }}
96130
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)