add bundlehash #91
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-ios | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| e2e-ios: | |
| 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: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Install applesimutils | |
| run: HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew && HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils | |
| - 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: Install CocoaPods dependencies | |
| run: cd Example/e2etest/ios && pod install | |
| - name: Rebuild Detox iOS framework cache | |
| run: | | |
| cd Example/e2etest | |
| bunx detox clean-framework-cache | |
| bunx detox build-framework-cache | |
| - name: Detox build (ios.sim.release) | |
| env: | |
| RNU_CLI_ROOT: ${{ github.workspace }}/react-native-update-cli | |
| run: cd Example/e2etest && E2E_PLATFORM=ios bunx detox build --configuration ios.sim.release | |
| - name: Detox test (ios.sim.release) | |
| env: | |
| RNU_CLI_ROOT: ${{ github.workspace }}/react-native-update-cli | |
| run: cd Example/e2etest && E2E_PLATFORM=ios bunx detox test --configuration ios.sim.release |