add bundlehash #114
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: e2e-android | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| push: | |
| branches: | |
| - master | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e-android: | |
| runs-on: macos-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout react-native-update | |
| uses: actions/checkout@v4 | |
| - name: Checkout react-native-update-cli | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: reactnativecn/react-native-update-cli | |
| path: react-native-update-cli | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - name: Install e2etest dependencies | |
| run: cd Example/e2etest && bun install --frozen-lockfile | |
| - name: Install react-native-update-cli dependencies | |
| run: cd react-native-update-cli && bun install --frozen-lockfile | |
| - name: Detox build (android.emu.release) | |
| env: | |
| DETOX_AVD_NAME: api34 | |
| run: cd Example/e2etest && E2E_PLATFORM=android bunx detox build --configuration android.emu.release | |
| - name: Detox test (android.emu.release) | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| env: | |
| RNU_CLI_ROOT: ${{ github.workspace }}/react-native-update-cli | |
| DETOX_AVD_NAME: api34 | |
| with: | |
| api-level: 34 | |
| arch: arm64-v8a | |
| avd-name: api34 | |
| script: cd Example/e2etest && E2E_PLATFORM=android bunx detox test --configuration android.emu.release --headless --record-logs all |