-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Adding Jest tests into a test stage #835
Conversation
jaysonmc
commented
Apr 19, 2023
- Adding npm install to README (missing step)
- Introducing a test stage (single action) to run the existing Jest tests and generate a CodeBuild report
SourceArtifact => sourceArtifact
@@ -22,6 +23,8 @@ phases: | |||
- sed -i "s|EXECUTION_ROLE_ARN|${EXECUTION_ROLE_ARN}|g" taskdef.json | |||
- sed -i "s|TASK_DEFINITION_ARN|${TASK_DEFINITION_ARN}|g" appspec.yaml | |||
- cat appspec.yaml && cat taskdef.json | |||
- mv appspec.yaml ../ |
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.
Should be copy, not move, or the file should be there to begin with.
I'd suggest outputting to a new file rather than modifying the file in-situ with sed.
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.
The sed part is not part of this PR. Though if we'd like to address, would make for a good new issue.
Regarding the move. I tried to reference the file not from root and it didn't work. I can take another swing at that one, though.
Oh, I missed the recommendation for copy (thought it was not move at all). Read to quickly. Updated.
branch: "main", | ||
output: sourceArtifact, | ||
output: SourceArtifact, |
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.
Looks like you meant this to be lowercase
output: SourceArtifact, | |
output: sourceArtifact, |
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