In GitLab CI, render Cake tasks as collapsible sections#239
Merged
nils-a merged 3 commits intocake-contrib:developfrom Sep 30, 2024
Merged
In GitLab CI, render Cake tasks as collapsible sections#239nils-a merged 3 commits intocake-contrib:developfrom
nils-a merged 3 commits intocake-contrib:developfrom
Conversation
6e95c16 to
1ebd22d
Compare
Extend module for GitLab CI with a custom CakeEngine that adds collapsible sections to the GitLab CI log (analogous to the groups in GitHubActionsEngine) For reference on the collapsible sections in GitLab CI, refer to https://docs.gitlab.com/ee/ci/yaml/script.html#custom-collapsible-sections
Highlight the section header in the GitLab CI log to make it easier to differentiate between the section header and the log output inside the section
Instead of just using the task name as section header, use "Executing task TASKNAME". This makes the section headers more consistent with the section headers used by GitLab CI which uses e.g. "Executing "step_script" stage of the job script"
e06e5d7 to
367377e
Compare
nils-a
approved these changes
Sep 30, 2024
Contributor
nils-a
left a comment
There was a problem hiding this comment.
LGTM! Thanks for getting this done!
|
🎉 This issue has been resolved in version 7.1.0 🎉
|
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.
Extends the module for GitLab CI with a custom CakeEngine that adds collapsible sections to the GitLab CI log (analogous to the groups in GitHubActionsEngine)
See Also: https://docs.gitlab.com/ee/ci/yaml/script.html#custom-collapsible-sections
I tried this out in a sample GitLab project and with the engine enabled, the output looks like this
Task-1andTask-2are Cake tasks and rendered as collapsible sectionTask-2