Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fuzz testing checks #19

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: fuzz tests

on:
push:
workflow_dispatch:

schedule:
- cron: "0 7 * * 6"

permissions: {}

jobs:
fuzz:
runs-on: ubuntu-latest

permissions:
contents: read
actions: read # for cache access
env:
FUZZ_TIME: 10m

steps:
- name: Checkout
uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb # v4.2.2

- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: stable

- name: Set environment variable based on trigger
run: |
if [[ "${{ github.event_name }}" != "push" ]]; then
echo "FUZZ_TIME=30m" >> $GITHUB_ENV
fi

- name: Fuzzing
uses: form3tech-oss/go-ci-fuzz/ci/github-actions/fuzz@4663eaaadb263d2621592c62681dac7f7002d582
with:
fuzz-time: ${{ env.FUZZ_TIME }}
fail-fast: true
version: 0.1.3