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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Jest tests into a test stage #835

Merged
merged 22 commits into from
Jul 31, 2023

Conversation

jaysonmc
Copy link
Contributor

  1. Adding npm install to README (missing step)
  2. Introducing a test stage (single action) to run the existing Jest tests and generate a CodeBuild report

@kaiz-io kaiz-io self-requested a review June 5, 2023 14:39
@@ -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 ../
Copy link
Contributor

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.

Copy link
Contributor Author

@jaysonmc jaysonmc Jun 22, 2023

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,
Copy link
Contributor

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

Suggested change
output: SourceArtifact,
output: sourceArtifact,

Copy link
Contributor

@kaiz-io kaiz-io left a comment

Choose a reason for hiding this comment

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

LGTM

@kaiz-io kaiz-io merged commit eb2c762 into aws-samples:master Jul 31, 2023
7 checks passed
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.

4 participants