| 1 | name: Fuzz |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ main ] |
| 6 | pull_request: |
| 7 | branches: [ main ] |
| 8 | |
| 9 | jobs: |
| 10 | all: |
| 11 | runs-on: ubuntu-latest |
| 12 | strategy: |
| 13 | matrix: |
| 14 | fuzzer: [FuzzBytesAndString, FuzzRune, FuzzTruncateStringAndBytes, FuzzControlSequences] |
| 15 | steps: |
| 16 | - name: Check out code |
| 17 | uses: actions/checkout@v6 |
| 18 | |
| 19 | - name: Set up Go |
| 20 | uses: actions/setup-go@v6 |
| 21 | with: |
| 22 | cache: true |
| 23 | |
| 24 | - name: ${{ matrix.fuzzer }} |
| 25 | run: go test -fuzz=${{ matrix.fuzzer }} -fuzztime=60s . |