Add fuzzing tests in CI/CD

This commit is contained in:
Théophile Diot 2023-10-02 16:06:49 +01:00
parent a263f1f4f1
commit 4babce9749
No known key found for this signature in database
GPG Key ID: 248FEA4BAE400D06
3 changed files with 34 additions and 0 deletions

28
.github/workflows/cflite.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: ClusterFuzzLite fuzzing
on:
workflow_call:
jobs:
fuzz:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitizer:
- address
- undefined
steps:
- name: Build Fuzzers (${{ matrix.sanitizer }})
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
with:
language: python
sanitizer: ${{ matrix.sanitizer }}
- name: Run Fuzzers (${{ matrix.sanitizer }})
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
fuzz-seconds: 3600
parallel-fuzzing: true
mode: "batch"
sanitizer: ${{ matrix.sanitizer }}

View File

@ -70,6 +70,9 @@ jobs:
contents: read
security-events: write
cflite:
uses: ./.github/workflows/cflite.yml
# UI tests
tests-ui:
needs: [codeql, build-containers]

View File

@ -71,6 +71,9 @@ jobs:
contents: read
security-events: write
cflite:
uses: ./.github/workflows/cflite.yml
# Create infrastructures and prepare tests
create-infras:
needs: [codeql, build-containers, build-packages]