【发布时间】:2021-04-19 13:59:09
【问题描述】:
我在尝试通过 github 操作在 mac OS 机器上运行 android 测试时遇到错误
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.
实际上,只有当我通过 github 操作在 CI 中运行测试时才会重现问题,但是当我通过 SSH 连接到这台机器时 - 一切正常。看起来它取决于使用的外壳?
即使我通过 GithubActions 执行命令 adb - 它也有效!
我不明白出了什么问题……
【问题讨论】:
-
您能分享一下
.yml的工作流程文件,看看您是如何实现的吗?
标签: adb github-actions detox