Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

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

Notifications You must be signed in to change notification settings

edvinasbartkus/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