diff --git a/.github/workflows/build-react-native-android.yml b/.github/workflows/build-react-native-android.yml deleted file mode 100644 index 0ad4658c2..000000000 --- a/.github/workflows/build-react-native-android.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Build React Native Android - -on: - workflow_call: - -jobs: - build: - name: Build - runs-on: ubuntu-latest - - defaults: - run: - working-directory: ./packages/react-native-app - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup - - - name: Setup Azul Zulu OpenJDK - uses: actions/setup-java@v4 - with: - distribution: zulu - java-version: 21 - - - name: Build Android - run: ./gradlew assemble - working-directory: packages/react-native-app/android diff --git a/.github/workflows/build-react-native-ios.yml b/.github/workflows/build-react-native-ios.yml deleted file mode 100644 index dd4b68ab2..000000000 --- a/.github/workflows/build-react-native-ios.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build React Native iOS & Test with Detox - -on: - workflow_call: - -jobs: - build: - name: Build - runs-on: macos-latest - timeout-minutes: 30 - - defaults: - run: - working-directory: ./packages/react-native-app - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup - - - name: Install Pod Dependencies - run: cd ios && pod --version && pod install - - - name: Install Detox Dependencies - run: | - brew tap wix/brew - brew install applesimutils - yarn detox clean-framework-cache && yarn detox build-framework-cache - - - name: Build iOS - run: yarn detox build -c ios.sim.release - - - name: Test with Detox - run: yarn detox test --debug-synchronization 200 -c ios.sim.release diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 3e2dfed6a..89cc9bc45 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -88,9 +88,52 @@ jobs: build-react-native-android: name: Build React Native Android needs: [lint-eslint, lint-tsc, test, codegen, build-library] - uses: ./.github/workflows/build-react-native-android.yml + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./packages/react-native-app + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup + uses: ./.github/actions/setup + + - name: Setup Azul Zulu OpenJDK + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 21 + + - name: Build Android + run: ./gradlew assemble build-react-native-ios: name: Build React Native iOS & Test with Detox needs: [lint-eslint, lint-tsc, test, codegen, build-library] - uses: ./.github/workflows/build-react-native-ios.yml + runs-on: macos-latest + timeout-minutes: 30 + defaults: + run: + working-directory: ./packages/react-native-app + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup + uses: ./.github/actions/setup + + - name: Install Pod Dependencies + run: cd ios && pod --version && pod install + + - name: Install Detox Dependencies + run: | + brew tap wix/brew + brew install applesimutils + yarn detox clean-framework-cache && yarn detox build-framework-cache + + - name: Build iOS + run: yarn detox build -c ios.sim.release + + - name: Test with Detox + run: yarn detox test --debug-synchronization 200 -c ios.sim.release