diff --git a/.github/workflows/e2e_android.yml b/.github/workflows/e2e_android.yml index 8343116..6249e93 100644 --- a/.github/workflows/e2e_android.yml +++ b/.github/workflows/e2e_android.yml @@ -4,9 +4,6 @@ on: push jobs: e2e-android: runs-on: macos-latest - env: - DETOX_CONFIGURATION: android.emu.debug - steps: - name: Checkout repository uses: actions/checkout@v3 @@ -37,7 +34,7 @@ jobs: ${{ runner.os }}-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 id: device @@ -49,7 +46,7 @@ jobs: api-level: 31 arch: x86_64 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 if: failure() diff --git a/package.json b/package.json index 391d7cb..7853a4f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "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", "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:android": "npm run build:android-release && npm run test:android-release", "tests:emulator:prepare": "cd .github/workflows/scripts/functions && yarn && yarn build",