Skip to content

Commit 1ec85c7

Browse files
authored
fix: refresh generated code to include new configs (#409)
* fix: refresh generated code to include new configs * add check in CI to ensure gen. code is up-to-date
1 parent 7b67ceb commit 1ec85c7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ jobs:
156156
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
157157
golangci-lint run --timeout 5m0s
158158
159+
- name: Gencodec
160+
run: |
161+
go get github.com/fjl/gencodec
162+
pushd fuzzing/config
163+
go run github.com/fjl/gencodec -type FuzzingConfig -field-override fuzzingConfigMarshaling -out gen_fuzzing_config.go
164+
git diff --exit-code -- .
165+
popd
159166
test:
160167
strategy:
161168
matrix:

fuzzing/config/gen_fuzzing_config.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)