Açıklama Yok

detox-android.yml 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: 'Detox CI Tests - Android'
  2. on: [push]
  3. jobs:
  4. tests:
  5. name: 'Running Android detox tests'
  6. runs-on: 'macOS-latest'
  7. steps:
  8. - name: Setup - Install Android SDK
  9. run: |
  10. brew cask install homebrew/cask-versions/adoptopenjdk8
  11. brew cask install android-sdk
  12. export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
  13. - name: Setup - Update Android SDK
  14. run: |
  15. # brew cask install intel-haxm
  16. touch ~/.android/repositories.cfg
  17. sdkmanager --update
  18. - name: Setup - Install Android Platform tools
  19. run: yes | sdkmanager "platforms;android-28"
  20. - name: Setup - Install Android build tools 28.0.3
  21. run: yes | sdkmanager "build-tools;28.0.3"
  22. - name: Setup - Install Android Google APIs
  23. run: yes | sdkmanager "system-images;android-28;google_apis;x86"
  24. - name: Setup - Install Android emulator library
  25. run: yes | sdkmanager "emulator"
  26. - name: Setup - Install Android emulator
  27. run: yes | sdkmanager "platform-tools"
  28. - name: Setup - Install Android 28
  29. run: avdmanager create avd -n test -k "system-images;android-28;google_apis;x86"
  30. - name: List Android Emulators
  31. run: emulator -list-avds
  32. - uses: actions/checkout@master
  33. - uses: actions/setup-node@master
  34. with:
  35. node-version: 12.6
  36. - name: Setup - Install Homebrew
  37. run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  38. - name: Setup - Install Yarn
  39. run: brew install yarn --ignore-dependencies
  40. - name: Setup - Install NPM Dependencies
  41. run: yarn
  42. - name: Setup - Install Detox and deps
  43. run: |
  44. brew tap wix/brew
  45. brew install applesimutils
  46. yarn global add react-native-cli
  47. yarn global add detox-cli
  48. - name: Run tests
  49. run: yarn ci:android