Skip to content

Commit

Permalink
ci: e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Dec 30, 2023
1 parent fe38c4b commit 538d4e1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: Install Dependencies
run: yarn install

- name: Start Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
script: yarn detox:build
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"android:buildDebug": "yarn android:prepareAssets && ./android/gradlew -b ./android/build.gradle assembleDebug -Dorg.gradle.jvmargs='-Xmx4g -XX:MaxPermSize=512m'",
"ios:prepareAssets": "react-native bundle --entry-file index.js --bundle-output ./ios/main.jsbundle --assets-dest ./ios/ --platform ios --dev false",
"bundle-visualizer": "yarn run react-native-bundle-visualizer",
"splash": "yarn react-native generate-bootsplash --background-color \"#000\" --logo-width 300 app/assets/logo/app-logo-dark.svg"
"splash": "yarn react-native generate-bootsplash --background-color \"#000\" --logo-width 300 app/assets/logo/app-logo-dark.svg",
"detox:android": "detox build --configuration android.emu.debug && detox test --configuration android.emu.debug"
},
"dependencies": {
"@apollo/client": "3.9.0-alpha.5",
Expand Down

0 comments on commit 538d4e1

Please sign in to comment.