Skip to content

Commit 2cda964

Browse files
authored
Merge pull request #77 from shogo82148/introduce-actions-go-fuzz
introduce shogo82148/actions-go-fuzz
2 parents fdb4cd4 + 900f48e commit 2cda964

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/fuzz.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "fuzz"
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "22 13 * * 1,3"
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
list:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-go@v4
18+
with:
19+
go-version: "stable"
20+
- id: list
21+
uses: shogo82148/actions-go-fuzz/list@v1
22+
outputs:
23+
fuzz-tests: ${{steps.list.outputs.fuzz-tests}}
24+
25+
fuzz:
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 360
28+
needs: list
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
include: ${{fromJson(needs.list.outputs.fuzz-tests)}}
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-go@v4
36+
with:
37+
go-version: "stable"
38+
- uses: shogo82148/actions-go-fuzz/run@v1
39+
with:
40+
packages: ${{ matrix.package }}
41+
fuzz-regexp: ${{ matrix.func }}
42+
fuzz-time: "355m"

0 commit comments

Comments
 (0)