Skip to content

Commit

Permalink
chore: add fuzzing github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlambrt committed Aug 7, 2023
1 parent d23b4a2 commit a4a2b03
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Go fuzz test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
fuzz-lexer-test:
name: Fuzz lexer test
runs-on: ubuntu-latest
steps:
# commit hash == v1.2.0
- uses: jidicula/go-fuzz-action@4f24eed45b25214f31a9fe035ca68ea2c88c6a13
with:
fuzz-time: 30s
fuzz-regexp: Fuzz_lexerNextToken
fuzz-parser-test:
name: Fuzz parser test
runs-on: ubuntu-latest
steps:
# commit hash == v1.2.0
- uses: jidicula/go-fuzz-action@4f24eed45b25214f31a9fe035ca68ea2c88c6a13
with:
fuzz-time: 30s
fuzz-regexp: Fuzz_parserParse
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

# Go workspace file
go.work

# fuzzing test data
testdata

0 comments on commit a4a2b03

Please sign in to comment.