-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat!: standardize workflow job parameters #176
Conversation
Still not working when I tested it with your changes: https://gist.github.com/Xavientois/7ea9388408896f2be515c0140ab22a1a |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #176 +/- ##
==========================================
- Coverage 96.16% 96.04% -0.13%
==========================================
Files 62 62
Lines 678 682 +4
Branches 69 72 +3
==========================================
+ Hits 652 655 +3
Misses 11 11
- Partials 15 16 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Thank you @Xavientois I believe I understand the issue now, I am going to move to merge this PR for separate reasons but then open a new PR to address your issue more directly. I believe that some somewhat large changes might be needed to how we handle orbs currently. I think it could be improved with some breaking changes. I think one of the major issues we are seeing now is the way the orb manifest gets parsed at runtime, which leaves you with no type information (even though it is static). Sorry for the confusion here, the problem is a bit deeper than I initially realized. I will make sure your comments here are put back into the original issue for tracking. I will then experiment a little with how maybe we could better work with orbs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
WorkflowJobs no longer have specific properties for
preSteps
orpostSteps
, instead these are now expected to be passed as additional parameters within the parameters object.The new syntax for using pre/postSteps:
This will produce the following output:
Additionally, this PR resolves an issue I came across in testing that does not appear reported. Previously the
when
key for workflows appeared to be required and would output an undefined value. This key will no longer be added if undefined.