Prioritize nodeModulesPath over config.root if present. #695
Workflow file for this run
This file contains 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: React-native-code-push CI | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-android: | |
name: Test Android app | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
api-level: [ 27 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Start adb server | |
run: adb devices | |
- name: Gradle cache | |
uses: gradle/gradle-build-action@v2 | |
- name: Download system image "android-${{ matrix.api-level }}" | |
run: $ANDROID_HOME/tools/bin/sdkmanager "system-images;android-${{ matrix.api-level }};google_apis;x86" | |
- name: Create android emulator | |
run: $ANDROID_HOME/tools/bin/avdmanager create avd --force --name TestEmulator --abi google_apis/x86 --package 'system-images;android-${{ matrix.api-level }};google_apis;x86' --device "Nexus 6P" | |
- name: Start android emulator | |
run: $ANDROID_HOME/emulator/emulator -avd TestEmulator -noaudio -no-window -no-snapshot-save -no-boot-anim -memory 6144 & | |
- name: Wait for emulator to boot | |
run: $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done' | |
- run: adb shell settings put global window_animation_scale 0.0 | |
- run: adb shell settings put global transition_animation_scale 0.0 | |
- run: adb shell settings put global animator_duration_scale 0.0 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'microsoft' | |
java-version: '11' | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7.6' | |
bundler-cache: true | |
- name: Package Installation | |
run: npm install | |
- name: Setup Android tests | |
run: npm run build:tests && npm run test:setup:android | |
- name: Run Android test | |
run: npm run test:fast:android | |
test-iOS: | |
name: Test iOS app | |
runs-on: macos-latest | |
env: | |
NO_FLIPPER: ${{ secrets.NO_FLIPPER }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7.6' | |
bundler-cache: true | |
- name: Install dependencies | |
run: npm install | |
- name: Setup iOS tests | |
run: npm run build:tests && npm run test:setup:ios | |
- name: Run tests | |
run: npm run test:fast:ios |