此问题可能是由于缺少构建所需的依赖项或配置文件引起的。以下是可能的
npm install
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: npm install
- name: Copy Detox configuration files
run: |
mkdir -p /root/.detox
cp .detoxrc.json /root/.detox
cp asyncStorage.js /root/.detox
- name: Run Detox tests
run: npm test
该工作流程假定您的配置文件在根目录中,因此将它们复制到/root/.detox目录中。如果您以不同的方式组织您的代码库,请相应地更改该脚本。
希望这些解决方法能够帮助您解