Repository navigation
62 lines (50 loc) · 1.53 KB
/
Copy pathfuzz.yml
File metadata and controls
62 lines (50 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: Fuzz Tests
on:
workflow_dispatch:
schedule:
- cron: "36 2 * * 1,4"
permissions:
contents: write
pull-requests: write
jobs:
list:
runs-on: ocl-16cpu-64ram-dind-500gi
timeout-minutes: 20
if: github.event_name != 'schedule' || github.repository == 'OffchainLabs/nitro-private'
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/init-submodules
with:
client-id: ${{ vars.NITRO_CI_APP_CLIENT_ID }}
app-private-key: ${{ secrets.NITRO_CI_APP_PRIVATE_KEY }}
- name: Setup CI
uses: ./.github/actions/ci-setup
- name: Build
run: make build test-go-deps -j
- id: list
uses: shogo82148/actions-go-fuzz/list@9ff10977e72bc65876413aba399202b1fbc16e99 # v1
outputs:
fuzz-tests: ${{steps.list.outputs.fuzz-tests}}
fuzz:
runs-on: ubuntu-4
timeout-minutes: 30
needs: list
strategy:
fail-fast: false
matrix:
include: ${{fromJson(needs.list.outputs.fuzz-tests)}}
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/init-submodules
with:
client-id: ${{ vars.NITRO_CI_APP_CLIENT_ID }}
app-private-key: ${{ secrets.NITRO_CI_APP_PRIVATE_KEY }}
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
- uses: shogo82148/actions-go-fuzz/run@9ff10977e72bc65876413aba399202b1fbc16e99 # v1
with:
packages: ${{ matrix.package }}
fuzz-regexp: ${{ matrix.func }}
fuzz-time: "1m"