fix: Correctly scope fuzz test in CI workflow

This commit fixes the fuzz test in the GitHub Actions workflow by correctly scoping it to the `pkg/trix` package. The `go test -fuzz` command can only be run on a single package at a time.

This also corrects the `-run` flag to ensure the fuzz test is executed correctly.
This commit is contained in:
google-labs-jules[bot] 2025-11-04 01:28:24 +00:00
parent 695fe6dfeb
commit b17d32999c

View file

@ -30,7 +30,7 @@ jobs:
run: go test -race -coverprofile=coverage.out -covermode=atomic ./... run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Fuzz (10s) - name: Fuzz (10s)
run: go test -run=NONE -fuzz=Fuzz -fuzztime=10s ./... run: go test -run=Fuzz -fuzz=Fuzz -fuzztime=10s ./pkg/trix
- name: Upload coverage reports to Codecov - name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5 uses: codecov/codecov-action@v5