1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: fix

This commit is contained in:
steven 2023-03-31 21:47:22 +08:00
parent 65a2477932
commit e76747f7d3
2 changed files with 3 additions and 6 deletions

View File

@ -4,9 +4,6 @@ on: push
jobs: jobs:
e2e-android: e2e-android:
runs-on: macos-latest runs-on: macos-latest
env:
DETOX_CONFIGURATION: android.emu.debug
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -37,7 +34,7 @@ jobs:
${{ runner.os }}-detox-build ${{ runner.os }}-detox-build
- name: Detox build - name: Detox build
run: cd Example/testHotUpdate && yarn detox build --configuration ${{ env.DETOX_CONFIGURATION }} run: yarn build:android-debug
- name: Get device name - name: Get device name
id: device id: device
@ -49,7 +46,7 @@ jobs:
api-level: 31 api-level: 31
arch: x86_64 arch: x86_64
avd-name: ${{ steps.device.outputs.AVD_NAME }} avd-name: ${{ steps.device.outputs.AVD_NAME }}
script: cd Example/testHotUpdate && yarn detox test --configuration ${{ env.DETOX_CONFIGURATION }} --headless --record-logs all script: yarn test:android-debug
- name: Upload artifacts - name: Upload artifacts
if: failure() if: failure()

View File

@ -15,7 +15,7 @@
"build:android-debug": "cd Example/testHotUpdate && yarn && detox build --configuration android.emu.debug", "build:android-debug": "cd Example/testHotUpdate && yarn && detox build --configuration android.emu.debug",
"build:android-release": "cd Example/testHotUpdate && yarn && detox build --configuration android.emu.release", "build:android-release": "cd Example/testHotUpdate && yarn && detox build --configuration android.emu.release",
"test:android-release": "export ANDROID_SDK_ROOT=/Users/arvinh/Library/Android/sdk && cd Example/testHotUpdate && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.release", "test:android-release": "export ANDROID_SDK_ROOT=/Users/arvinh/Library/Android/sdk && cd Example/testHotUpdate && ./node_modules/.bin/nyc yarn detox test --configuration android.emu.release",
"test:android-debug": "cd Example/testHotUpdate && detox test --configuration android.emu.debug", "test:android-debug": "cd Example/testHotUpdate && detox test --configuration android.emu.debug --headless --record-logs all",
"e2e:ios": "npm run build:ios-release && npm run test:ios-release", "e2e:ios": "npm run build:ios-release && npm run test:ios-release",
"e2e:android": "npm run build:android-release && npm run test:android-release", "e2e:android": "npm run build:android-release && npm run test:android-release",
"tests:emulator:prepare": "cd .github/workflows/scripts/functions && yarn && yarn build", "tests:emulator:prepare": "cd .github/workflows/scripts/functions && yarn && yarn build",