123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: 'Detox CI Tests - Android'
- on: [push]
-
- jobs:
- tests:
- name: 'Running Android detox tests'
- runs-on: 'macOS-latest'
- steps:
- - name: Setup - Install Android SDK
- run: |
- brew cask install homebrew/cask-versions/adoptopenjdk8
- brew cask install android-sdk
- export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
- - name: Setup - Update Android SDK
- run: |
- # brew cask install intel-haxm
- touch ~/.android/repositories.cfg
- sdkmanager --update
- - name: Setup - Install Android Platform tools
- run: yes | sdkmanager "platforms;android-28"
- - name: Setup - Install Android build tools 28.0.3
- run: yes | sdkmanager "build-tools;28.0.3"
- - name: Setup - Install Android Google APIs
- run: yes | sdkmanager "system-images;android-28;google_apis;x86"
- - name: Setup - Install Android emulator library
- run: yes | sdkmanager "emulator"
- - name: Setup - Install Android emulator
- run: yes | sdkmanager "platform-tools"
- - name: Setup - Install Android 28
- run: avdmanager create avd -n test -k "system-images;android-28;google_apis;x86"
- - name: List Android Emulators
- run: emulator -list-avds
- - uses: actions/checkout@master
- - uses: actions/setup-node@master
- with:
- node-version: 12.6
- - name: Setup - Install Homebrew
- run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- - name: Setup - Install Yarn
- run: brew install yarn --ignore-dependencies
- - name: Setup - Install NPM Dependencies
- run: yarn
- - name: Setup - Install Detox and deps
- run: |
- brew tap wix/brew
- brew install applesimutils
- yarn global add react-native-cli
- yarn global add detox-cli
- - name: Run tests
- run: yarn ci:android
|