Browse Source

Update README.md

master
Henning Hall 2 years ago
parent
commit
a3b82ad76b
2 changed files with 1 additions and 61 deletions
  1. +0
    -60
      .github/workflows/android-detox.yml
  2. +1
    -1
      README.md

+ 0
- 60
.github/workflows/android-detox.yml View File

@ -50,63 +50,3 @@ jobs:
- name: Run unit tests
working-directory: ./examples/detox/android
run: ./gradlew testDebugUnitTest
end_to_end_tests:
name: End to end tests
runs-on: macos-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Node
uses: actions/setup-node@v2
- name: Use specific Java version for sdkmanager to work
uses: joschi/setup-jdk@v2
with:
java-version: 'openjdk8'
architecture: 'x64'
- name: Install npm dependencies
working-directory: ./examples/detox
run: |
yarn install --frozen-lockfile --network-timeout 60000
- name: Download Android Emulator Image
timeout-minutes: 15
run: |
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install "system-images;android-29;google_apis;x86"
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd --force --name emu --device "Nexus 5X" -k 'system-images;android-29;google_apis;x86'
$ANDROID_HOME/emulator/emulator -list-avds
- name: Build
working-directory: ./examples/detox
run: |
yarn build:android-ci
- name: Start android emulator
timeout-minutes: 5
working-directory: ./examples/detox
continue-on-error: true
run: |
echo "Starting emulator"
nohup $ANDROID_HOME/emulator/emulator -avd emu -no-audio -no-snapshot -no-window &
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
$ANDROID_HOME/platform-tools/adb devices
echo "Emulator started"
- name: Run e2e tests
timeout-minutes: 60
working-directory: ./examples/detox
run: yarn start & yarn test:android-ci
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: Failing tests
path: ./examples/detox/artifacts

+ 1
- 1
README.md View File

@ -1,4 +1,4 @@
# React Native Date Picker [![npm](https://img.shields.io/npm/v/react-native-date-picker.svg)](https://www.npmjs.com/package/react-native-date-picker) [![npm](https://img.shields.io/npm/dm/react-native-date-picker.svg)](https://www.npmjs.com/package/react-native-date-picker)
# React Native Date Picker [![npm](https://img.shields.io/npm/v/react-native-date-picker.svg)](https://www.npmjs.com/package/react-native-date-picker) [![Build status](https://img.shields.io/github/actions/workflow/status/henninghall/react-native-date-picker/android-detox.yml?branch=master&label=tests)](https://github.com/henninghall/react-native-date-picker/actions) [![npm](https://img.shields.io/npm/dm/react-native-date-picker.svg)](https://www.npmjs.com/package/react-native-date-picker)
This is a React Native Date Picker with following main features:

Loading…
Cancel
Save