0

I got an error during the attempt to run android tests on mac OS machine via github actions

DetoxRuntimeError: Detox instance has not been initialized
    HINT: There was an error on attempt to call detox.init()
    Error: There was no "adb" executable file in directory: ~/Library/Android/sdk/platform-tools.
    Check integrity of your Android SDK.

Actually, the issues is reproduced only when I run tests in CI through github actions, but when I connect to this machine via SSH - all works fine. Looks like it depends on used shell?

Also even if I execute the command adb via GithubActions - it works! I can’t understand what is wrong…

1 Answers1

0

Fixed by adding

export ANDROID_SDK_ROOT=~/Library/Android/sdk

before npm script execution.