Skip to content

Bump ws from 6.2.2 to 6.2.3 in /Examples/CodePushDemoApp #870

Bump ws from 6.2.2 to 6.2.3 in /Examples/CodePushDemoApp

Bump ws from 6.2.2 to 6.2.3 in /Examples/CodePushDemoApp #870

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: (Workaround) Install activesupport 7.0.8
run: gem install activesupport -v 7.0.8
- 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