Adds CIFuzz to check PRs

cf https://google.github.io/oss-fuzz/getting-started/continuous-integration/
This commit is contained in:
Philippe Antoine 2020-04-18 10:50:56 +02:00
parent da0889d3ba
commit db5f3b38b7

23
.github/workflows/cifuzz.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: CIFuzz
on: [pull_request]
jobs:
Fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'ndpi'
dry-run: false
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'ndpi'
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure()
with:
name: artifacts
path: ./out/artifacts