-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Android Tests on Github Actions (Ubuntu) #3860
Comments
I suggest you to set up an open-source demo project with Github Actions so that we can step by step fix and make it work (or identify blockers). |
Hello! We appreciate you bringing this issue to our attention. If you're interested in contributing to this feature, You're also welcome to join our Discord server Please feel free to reach out to us if you have any questions, or need help with anything. |
I have a different issue, and I have done some extended debugging on this.... a. Make sure it has the --headless flag Now I'm stuck at a place where it seems that, even if the tests pass 100%, the process exits with an exit code of 1 due to the an error when it tries to close the detox server. 23:15:51.667 detox[5408] i ipc server socket error Error: read ECONNRESET |
To add additional information... when the exact same commands are ran on my Mac, it returns a exit code of zero. I know I'm not necessarily including everything in the logs here, but from what I've seen in the logs, detox invokes the jest process, runs the test... the process returns a EXEC_SUCCESS.... but yet.... the detox command determined that something is wrong and returns a exit code of 1. Again, this only happens when I try to run it on github actions on a Ubuntu image... the exact same tests runs with a exit code of zero on a Mac. 19:43:19.492 detox[4904] i ipc socket disconnected secondary-4918 |
You can fix this in github actions by adding
to your workflow |
Anyone in the thread have a GitHub Actions workflow file to share here? We have an Android macOS GitHub Actions workflow here: We're still running into the
So we would be happy to try out the Ubuntu workflow if it works! |
@karlhorky I've been working on something the last few weeks. You can see what I have so far at https://github.com/oblador/react-native-vector-icons/blob/monorepo/.github/workflows/tests.yaml Working on getting macosx working this weekend. Still a work in progress |
Description
Hi!
I'm trying to run detox tests on Github actions with Ubuntu and having an issue
Could you help me with it?
Here is a log:
Your environment
Detox version: ^20.1.1
React Native version: 0.70.5
Node version: 16
OS: Ubuntu
Test-runner: jest
The text was updated successfully, but these errors were encountered: