Skip to content

Starter shell for React Native project with Detox tests running on Github Actions

Notifications You must be signed in to change notification settings

imtheish97/react-native-detox-github-actions

 
 

Repository files navigation

Starter shell for React Native project with Detox tests running on Github Actions

It includes two Github Actions workflows to run end to end Detox tests.

Config in package.json:

  "detox": {
    "configurations": {
      "android.emu.debug": {
        "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
        "build":
        "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..",
        "type": "android.emulator",
        "name": "emu"
      },
      "ios.sim.release": {
        "binaryPath": "ios/build/Build/Products/Release-iphonesimulator/RNDetoxGa.app",
        "build": "xcodebuild -workspace ios/RNDetoxGa.xcworkspace -scheme RNDetoxGa -configuration Release -sdk iphonesimulator -derivedDataPath ios/build",
        "type": "ios.simulator",
        "name": "iPhone 8"
      }
    },
    "test-runner": "jest"
  }

Little bit more detailed post on dev.to about the workflows: https://dev.to/edvinasbartkus/running-react-native-detox-tests-for-ios-and-android-on-github-actions-2ekn

About

Starter shell for React Native project with Detox tests running on Github Actions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 32.1%
  • Objective-C 23.5%
  • Java 17.9%
  • Ruby 15.7%
  • Starlark 10.8%