-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Housekeeping] DRY CI with Action Composition #1518
Comments
I am marking this as blocked - and leaving a little writeup for whoever will take on this issue in the future 😄 Why block it?When starting this issue I tought it would be a problem storing composite actions in the same repo and not having to put them in an external one. This was quite easy actually as Github supports local composite actions:
It unfortunately turns out that you can't have It seems like It is a work in progress and something Github want to do but it is not ready yet. We should therefore leave this blocked until that feature is ready. For more see the following resources:
An Alternative solution!An alternative solution I've stumbled upon when working with this - is to implement YAML anchors via a build script that can be executed pre-commit. I found it here and the author also links to an example repo: actions/runner#438 (comment) I played around with it for maybe 30 minutes but had some problems with my node version. I decided to not use anymore time on it as I do not know how this alternative solution will be received 😄 Ideas for Composite ActionsI've located two routines that are being executed several times in our workflows that I would like to turn into reusable composite actions. Unfortunately both of these uses other Github Actions and can therefore not be put into a composite run step. The first I would like to put into a 'Setup Kirby environment' action:
The above is executed around 5 times in our workflows at the time of writing. Secondly there are 4 places in the code where very similar steps are executed, these are:
Therefore I would like to create a "Set deployment status" action which should take a status as input. |
This issue has been automatically marked as stale because of no recent activity. It will be closed in 10 weeks if no further activity occurs. Thank you for your contributions. |
It is now possible to compose actions! |
Suggestions from the review of #1402 that could be carried out as part of this issue1 )Original comment from PR:
Related code: 2 )Original comment from PR:
Related code: |
This issue has been automatically marked as stale because of no recent activity. It will be closed in 10 weeks if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to inactivity. Please open a new issue if it becomes relevant again. |
Short description of housekeeping request
I would like to investigate if we can DRY our GitHub Actions workflows (located in
.github/workflows
) by utilising composite run steps and actions:We have quite a lot of repeating steps. For example, if we are to change the node version used, we have to change it 3 - 5 different places.
This makes it easy to make mistakes and makes it hard to get an overview.
Tasks
Kick Off
Tech refined
with @kirbydesign/kirby-guild and is updated with a clear implementation descriptionThis issue should be in the Ready to do column of the Kirby kan-ban board before starting implementation
Code
Code Review
Ready for review
) and ask @kirbydesign/kirby-guild for a reviewRemember to add
closes #issueno
to the description of the PR.🎉 Celebrate
The text was updated successfully, but these errors were encountered: