diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml new file mode 100644 index 0000000..ba23adf --- /dev/null +++ b/.github/workflows/fuzz.yml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3b735ec..7bc8aa8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ # Go workspace file go.work + +# fuzzing test data +testdata \ No newline at end of file