ci: align workflows with labstack/echo - #151
Merged
Merged
Conversation
- Rename the test workflow to ci.yml ("CI").
- Test with Go 1.25, 1.26 and 1.27, and run coverage and benchmarks on 1.27.
- Pin actions to commits (checkout v6, setup-go v6, codecov v7, cache v6.1.0).
- Keep the Go build cache current: restore the newest cache for each OS, Go version
and job, and save a new one on pushes (setup-go's cache is keyed on go.sum only
and goes stale).
- Run the benchmark comparison only on pull requests (github.base_ref is empty on
pushes, so it compared master with itself), with -benchtime=100ms so it takes
minutes instead of about 20.
- Cancel superseded pull request runs.
Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq
The rename to ci.yml also renamed the test step; only the workflow is CI. Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq
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.
Brings the test workflow in line with labstack/echo (labstack/echo#3139, #3140 and #3141):
echo-contrib.ymlis nowci.yml("CI"), the most common name for a main build-and-test workflow.go.sumonly, so it is never refreshed. Each job now restores the newestactions/cacheentry for its OS, Go version and job, and pushes save a new one.github.base_refis empty on pushes, so it was comparingmasterwith itself. It also uses-benchtime=100ms, so it takes minutes instead of about 20.masteralways finish.https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq