|
|
@@ -69,6 +69,38 @@ jobs:
|
|
69
|
69
|
with:
|
|
70
|
70
|
file: ./coverage.txt
|
|
71
|
71
|
|
|
|
72
|
+ fuzz:
|
|
|
73
|
+ name: Fuzzing
|
|
|
74
|
+ runs-on: ubuntu-latest
|
|
|
75
|
+ timeout-minutes: 20
|
|
|
76
|
+ steps:
|
|
|
77
|
+ - name: Checkout
|
|
|
78
|
+ uses: actions/checkout@v2
|
|
|
79
|
+ with:
|
|
|
80
|
+ submodules: recursive
|
|
|
81
|
+
|
|
|
82
|
+ - name: Setup Go
|
|
|
83
|
+ uses: actions/setup-go@v2
|
|
|
84
|
+ with:
|
|
|
85
|
+ go-version: ^1.18
|
|
|
86
|
+
|
|
|
87
|
+ - name: Cache fuzz results
|
|
|
88
|
+ uses: actions/cache@v2
|
|
|
89
|
+ with:
|
|
|
90
|
+ path: ~/.cache/go-build/fuzz
|
|
|
91
|
+ key: ${{ runner.os }}-go-${{ hashFiles('**/*_fuzz_test.go', '**/*_fuzz_internal_test.go') }}
|
|
|
92
|
+ restore-keys: ${{ runner.os }}-go-
|
|
|
93
|
+
|
|
|
94
|
+ - name: Cache dependencies
|
|
|
95
|
+ uses: actions/cache@v2
|
|
|
96
|
+ with:
|
|
|
97
|
+ path: ~/go/pkg/mod
|
|
|
98
|
+ key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
99
|
+ restore-keys: ${{ runner.os }}-go-
|
|
|
100
|
+
|
|
|
101
|
+ - name: Run fuzzing
|
|
|
102
|
+ run: make -j4 fuzz
|
|
|
103
|
+
|
|
72
|
104
|
lint:
|
|
73
|
105
|
name: Lint
|
|
74
|
106
|
runs-on: ubuntu-latest
|