Fix CI workflows to trigger on Go file changes #44
+845
−106
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The repository includes Go code for OCI registry integration in the
oci-go/directory (added in the base commit), but the CI workflow path filters only included C/C++, Swift, Metal, and other source files. This meant that changes to Go files (*.go,go.mod,go.sum) would not trigger CI builds, potentially allowing untested Go code changes to be merged.Solution
Added Go file patterns to the path filters in the following workflows:
build.yml- Main CI build workflow (push and pull_request triggers)build-amd.yml- AMD-specific build workflow (push trigger)release.yml- Release workflow (push trigger)server.yml- Server tests workflow (push and pull_request triggers)Each workflow now includes:
**/*.go- Go source files**/go.mod- Go module definition**/go.sum- Go module checksumsVerification
oci-go/builds without errorsNow when Go files are modified, the appropriate CI workflows will trigger and validate the changes, ensuring the same level of testing coverage as other source files in the repository.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.