ci: add workflow to test in goravel/example#1439
Merged
Merged
Conversation
…ntain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to run the full test suite of goravel/example against the framework code from the current commit/PR by checking out both repositories and using a local go.mod replace. This extends CI coverage to catch framework changes that break the canonical example app.
Changes:
- Introduce
.github/workflows/test_example.ymlto checkoutgoravel/framework+goravel/exampleand rungo test ./...in the example. - Rewire the example’s
go.modto use the local framework checkout viago mod edit -replace+go mod tidy. - Run the example test suite in a Go version matrix (1.25 / 1.26) with Go build/module caching.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1439 +/- ##
=======================================
Coverage 68.78% 68.78%
=======================================
Files 361 361
Lines 27833 27833
=======================================
Hits 19145 19145
Misses 7840 7840
Partials 848 848 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
goravel/examplealongside the framework and runs its full test suiteWhy
The framework currently has no automated check that verifies changes don't break the companion
goravel/exampleapplication. Breakage is only discovered after a PR is merged, requiring a separate fix cycle.This workflow triggers on every push to
masterand on every pull request. It checks out bothgoravel/frameworkandgoravel/example, rewires the example'sgo.modto point at the local framework tree, and executesgo test ./...inside the example. This gives maintainers confidence that in-flight framework changes stay compatible with the canonical application scaffold.