test(e2e): making the e2e testing suite more reliable with detox and local backend #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E Tests | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
e2e-android: | |
name: Run Detox Tests on Android | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Cache Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
ios/Pods | |
key: ${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock', '**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-deps- | |
- name: Install Dependencies | |
run: yarn install | |
- name: Start Android Emulator | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
avd-name: Pixel_3a | |
script: | | |
adb devices | |
yarn detox:android |