Skip to content

Conversation

@fredbi
Copy link
Member

@fredbi fredbi commented Dec 12, 2025

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for testing Go mono-repositories by introducing a new reusable workflow (go-test-monorepo.yml) that can handle multiple Go modules within a single repository. The workflow includes automatic mono-repo detection, module-aware linting using golangci-lint's experimental feature, and version-specific test execution based on Go's native go test work support introduced in Go 1.25.

  • Creates a sample mono-repo structure for testing CI workflows
  • Adds reusable workflow for mono-repo testing with automatic module detection
  • Enables go.work files by uncommenting them in .gitignore

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
.github/workflows/go-test-monorepo.yml Main reusable workflow implementing mono-repo test support with automatic detection, golangci-lint experimental features, and version-aware test execution
.github/workflows/local-go-test-monorepo.yml Local workflow file that calls the reusable mono-repo workflow
sample-monorepo/pkg/pkg.go Sample package implementation with a simple function and a fuzzable function for testing
sample-monorepo/pkg/pkg_test.go Unit and fuzz tests for the sample package using testify/v2 assertions
sample-monorepo/go.mod Go module definition for the sample mono-repo module
sample-monorepo/go.sum Dependency checksums for the sample mono-repo
sample-monorepo/doc.go Package documentation for the sample mono-repo
go.work Go workspace file enabling multi-module support
.gitignore Uncomments go.work and go.work.sum to allow workspace files in version control
.claude/CLAUDE.md Adds reference to GitHub Actions skills documentation for Claude Code

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fredbi fredbi force-pushed the feat/monorepo-test branch from 2b6b172 to 4898cef Compare December 12, 2025 21:10
@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4a76752) to head (993817d).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #55   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         3    +1     
  Lines            8        14    +6     
=========================================
+ Hits             8        14    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@fredbi fredbi force-pushed the feat/monorepo-test branch from 5fcb98e to 993817d Compare December 12, 2025 21:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 12 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fredbi fredbi merged commit 71a0ee5 into go-openapi:master Dec 12, 2025
35 checks passed
@fredbi fredbi deleted the feat/monorepo-test branch December 12, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant