Skip to content

Commit

Permalink
ci: move native builds to review
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 1, 2024
1 parent abdbf0e commit a1e8eb8
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 68 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/build-react-native-android.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/build-react-native-ios.yml

This file was deleted.

47 changes: 45 additions & 2 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a1e8eb8

Please sign in to comment.