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.
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.
I've followed the existing convention here (
MY_INPUT
), but in my experience GitHub Actions inputs are typically defined asmy-input
(see examples) - I wonder if we should make that change now before too many people pick this up.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.
Does this mean we're able to use different node versions within the same repo? To provide a simple example against this: we've seen a few lambdas with a node 12 runtime, but build with node 14. That's pretty confusing IMO.
Are there any reasons one would want to use a different node version within a single repository?
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.
I guess there are a few reasons that we might want to specify the path to the node version file rather than using a hardcoded default:
.nvmrc
), but the file is not at the project root (this is my use case -cdk
projects typically seem to include this file under/cdk
)..node-version
(rather than.nvmrc
) to manage the node version.cdk
and version B for application code. I'm not 100% sure if this is desirable/acceptable and I'm not convinced it'd work properly with this workflow!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.
I think GuCDK is wrong here - it should place this file at the root (possibly tricky if it already exists).
Not sure we do this (rough GH search), but a fair point.
See 1. I think we should do everything we can to avoid this as it's pretty confusing!
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.
I've merged this PR as I think it's still sensible to allow users to configure this if it's necessary, but I agree with:
so I'll see if it can be easily moved for AMIgo.
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.
Definitely think we should do this sooner rather than later!