Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/cgo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ jobs:
- name: Verify dependencies
run: go mod verify

- name: Verify integration build
run: |
# Compile and link all integration-tagged test binaries without
# executing package test binaries or TestMain side effects.
# Regular unit tests use -tags '!integration', so build errors in
Comment thread
pelikhan marked this conversation as resolved.
# integration-tagged files (e.g. unused imports) would otherwise
# go undetected until the fuzz job runs on main.
go test -run='^$' -exec=true -tags=integration ./...

- name: Pre-flight check - Validate test dependencies
run: |
echo "Validating that test dependencies are available..."
Expand Down Expand Up @@ -1374,6 +1383,15 @@ jobs:
- name: Verify dependencies
run: go mod verify

- name: Verify integration build
run: |
# Compile and link all integration-tagged test binaries without
# executing package test binaries or TestMain side effects.
# Fuzz tests such as FuzzSanitizeOutput run with -tags=integration; a build
# error in any integration-tagged file causes the entire fuzz run to fail
# with a misleading error message.
Comment thread
pelikhan marked this conversation as resolved.
go test -run='^$' -exec=true -tags=integration ./...

- name: Run fuzz tests (${{ matrix.group }})
run: |
set -o pipefail
Expand Down
Loading