Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

remove yarn.lock file

ammarahm-edf6b89af4029f
diff --git a/apps/mobile/.github/workflows/main.yml b/apps/mobile/.github/workflows/main.yml
index b683da4a8..46672e015 100644
--- a/apps/mobile/.github/workflows/main.yml
+++ b/apps/mobile/.github/workflows/main.yml
@@ -18,4 +18,25 @@ jobs:
node-version: 15.x
- name: Install node_modules
- run: yarn
\ No newline at end of file
+ run: yarn
+
+ - name: Download Android Emulator Image
+ 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 for detox
+ run: |
+ yarn build-detox-android
+ - name: Android Emulator
+ timeout-minutes: 10
+ 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: Android Detox
+ run: yarn start & yarn test-detox-android