Skip to content

Commit

Permalink
ci: fuzz gh action
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pana <[email protected]>
  • Loading branch information
acpana committed Sep 12, 2024
1 parent bb1c0b1 commit c8eda6b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/fuzz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: fuzzer
on:
push:
# should more or less match what we have in .golangci.yaml
paths-ignore:
- "third_party/**"
- "**.md"
- pkg/clients/generated
- config/tests
pull_request:
paths-ignore:
- "third_party/**"
- "**.md"
- pkg/clients/generated
- config/tests
permissions: read-all
jobs:
fuzzer:
name: fuzz-direct
runs-on: ubuntu-22.04
timeout-minutes: 7
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: fuzz direct
run: |
./dev/tasks/find-missing-fields
2 changes: 2 additions & 0 deletions dev/tasks/find-missing-fields
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ go test -v ./pkg/controller/direct/redis/cluster/ -fuzz=FuzzRedisClusterObserved
go test -v ./pkg/controller/direct/monitoring/ -fuzz=FuzzMonitoringDashboardSpec -fuzztime 60s
go test -v ./pkg/controller/direct/securesourcemanager/ -fuzz=FuzzSecureSourceManagerInstanceSpec -fuzztime 60s
go test -v ./pkg/controller/direct/securesourcemanager/ -fuzz=FuzzSecureSourceManagerInstanceObservedState -fuzztime 60s

go test -v ./pkg/controller/direct/dataform/ -fuzz=FuzzDataformRepositorySpec -fuzztime 60s

0 comments on commit c8eda6b

Please sign in to comment.