-
Notifications
You must be signed in to change notification settings - Fork 116
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
Deployment fails when test section included in amplify.yml #1923
Comments
Hi 👋, thanks for opening! While we look into this... If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions. Lastly, please make sure you've specified the |
@wyatt-troia can you confirm for me the branch and job number for the deploy failure? The only deploy for |
@wyatt-troia can you also double check your yaml syntax (in particular |
I am having a similar issue with this. My Amplify.yml looks like following and my app id is dnpfuqj1l8nkg. I also tried to modify yml as per suggestions/examples I found on the internet but nothing works. It always stuck at the build phase or sometimes at the test phase but it never starts my tests. amplify.yml:
EDIT: Here are couple of last lines from buid.log
|
Updates: So I changed test script to this in package.json
and modified my yml to this
Now all my tests passed and worked correctly but fails on deploy with the following logs
|
It worked now. I tested with a fresh new app and all good, so I think CI=true in package.json and configFilePath: '/mochawesome.json'** did the trick. Not sure why configFilePath is required, but this helped me package.json
amplify.yml
|
@saachitech @kahdojay Thank you! I also just had to provide an arbitrary value for Here was my final test section of my config:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Region: us-east-1
App ID: diz6udlgf5b4p
The below build config results in a build that fails during the "deploy" stage with the following logs:
When I remove the testing section entirely, deployment succeeds. Deployment also fails when I include the test section but omit the "files" part.
Is there anything I can do? I'd like to be able to integrate testing into my deployment process. The repo is structured as a monorepo
amplify.yml:
The text was updated successfully, but these errors were encountered: