-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add var step #656
Add var step #656
Conversation
Codecov Report
@@ Coverage Diff @@
## master #656 +/- ##
==========================================
+ Coverage 72.25% 72.57% +0.32%
==========================================
Files 62 63 +1
Lines 4728 4792 +64
==========================================
+ Hits 3416 3478 +62
- Misses 1057 1058 +1
- Partials 255 256 +1
Continue to review full report at Codecov.
|
@lkysow coverage fixed |
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.
Hi Andrii,
Sorry for the delay and thanks for all your hard work on this. I like this solution rather than using BASH_ENV.
At a high level I think the schema should be:
steps:
- env:
name: NAME
value: hardcoded-value
command: echo dynamic-value
So
- Change
var
=>env
- Add key
value
that allows setting the env var directly
I haven't looked at all the other code very hard but it looks like you're taking the right direction.
I noticed that all the mocks have been updated. Did you need to upgrade pegomock? If so, I'd like to do that myself in a separate PR. What version are you using?
@lkysow thanks for the review. I changed your request. I just want to fix tests and cover new functionality and I use 2.5.0 version of pegomock. Can you answer to my question about ctx.Env. If I should use local variable should I pass it to every setpRunner? Thanks |
I'll try upgrading pegomock to 2.5 and that should make this PR much easier to review |
|
runatlantis#370 Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
I rebased master. |
I tried to fix tests right now. |
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
@lkysow I fixed test, but coverage is down :( |
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
@lkysow all done. Ready for new review. |
@lkysow Anything left outstanding on this (outside of those conflicts)? I'd love to be able to use this. |
It's looking good, I just need time to a thorough review. |
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
Signed-off-by: Andrii Nasinnyk <[email protected]>
@lkysow conflicts resolved |
Hi @anasinnyk, One thing that's missing though is the documentation. I thought I remember you writing it but I can't find it in the diff. Can you find it in your commits and submit a new PR? I'm going to close this since the code is now in master. |
We want to share variables between steps.
Usage:
fixed issue #370