Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap steps in the containing action #220

Merged
merged 2 commits into from Mar 13, 2019

Conversation

carolynvs
Copy link
Member

  • Update the exec mixin to look for its step data wrapped in an action
  • Porter now sends steps to mixins wrapped in the containing action
install:
- exec:
     description: hello world

When sending steps to a mixin, provide context by wrapping them in the containing action (e.g. install, uninstall) so that the mixins can validate them against their schemas without having to maintain a
separate set of schema per action. This also will set us up for when mixin build will send a list of steps per action to validate.

This should have been in #212 but ... wasn't. 馃槉 This also fixes the integration tests on master.

install:
- exec: ...
@ghost ghost assigned carolynvs Mar 13, 2019
@ghost ghost added the review label Mar 13, 2019
When sending steps to a mixin, provide context by wrapping them in the
containing action (e.g. install, uninstall) so that the mixins can
validate them against their schemas without having to maintain a
separate set of schema per action.

This also will set us up for when `mixin build` will send a list of
steps per action to validate.
Copy link
Contributor

@jeremyrickard jeremyrickard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Release the 馃悪

@carolynvs carolynvs merged commit f9fbbe3 into getporter:master Mar 13, 2019
@carolynvs carolynvs deleted the wrap-step-in-action branch March 13, 2019 15:10
@ghost ghost removed the review label Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants