fix: goreleaser v2 compat, trigger release-binaries with workflow_run #825
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [ push, pull_request ] | |
name: Go Fuzz | |
jobs: | |
v1: | |
strategy: | |
fail-fast: true | |
matrix: | |
target: [ "CarReader" ] | |
runs-on: ubuntu-latest | |
name: Fuzz V1 ${{ matrix.target }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- name: Go information | |
run: | | |
go version | |
go env | |
- name: Run Fuzzing for 1m | |
run: go test -v -fuzz=Fuzz${{ matrix.target }} -fuzztime=1m . | |
v2: | |
strategy: | |
fail-fast: true | |
matrix: | |
target: [ "BlockReader", "Reader", "Inspect" ] | |
runs-on: ubuntu-latest | |
name: Fuzz V2 ${{ matrix.target }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- name: Go information | |
run: | | |
go version | |
go env | |
- name: Run Fuzzing for 1m | |
run: | | |
cd v2 | |
go test -v -fuzz=Fuzz${{ matrix.target }} -fuzztime=1m . |