xref: /freebsd/contrib/libcbor/.github/workflows/fuzz-pr.yml (revision 5d3e7166f6a0187fa3f8831b16a06bd9955c21ff)
1*5d3e7166SEd Maste# A quick CIFuzz sanity check. Fuzzing time is kept low provide fast feedback
2*5d3e7166SEd Maste# on PRs; fuzz.yml schedules a daily long-running fuzzing job.
3*5d3e7166SEd Mastename: CIFuzz PR check
4*5d3e7166SEd Masteon: [pull_request]
5*5d3e7166SEd Mastejobs:
6*5d3e7166SEd Maste  Fuzzing:
7*5d3e7166SEd Maste    runs-on: ubuntu-latest
8*5d3e7166SEd Maste    steps:
9*5d3e7166SEd Maste    - name: Build Fuzzers
10*5d3e7166SEd Maste      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
11*5d3e7166SEd Maste      with:
12*5d3e7166SEd Maste        oss-fuzz-project-name: 'libcbor'
13*5d3e7166SEd Maste        dry-run: false
14*5d3e7166SEd Maste    - name: Smoke Test Fuzzers
15*5d3e7166SEd Maste      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
16*5d3e7166SEd Maste      with:
17*5d3e7166SEd Maste        oss-fuzz-project-name: 'libcbor'
18*5d3e7166SEd Maste        fuzz-seconds: 10
19*5d3e7166SEd Maste        dry-run: false
20*5d3e7166SEd Maste    - name: Upload Crash
21*5d3e7166SEd Maste      uses: actions/upload-artifact@v1
22*5d3e7166SEd Maste      if: failure()
23*5d3e7166SEd Maste      with:
24*5d3e7166SEd Maste        name: artifacts
25*5d3e7166SEd Maste        path: ./out/artifacts
26