-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add Detox e2e tests for RN SDK. (#376)
Runs e2e tests for iOS. Android will follow in a separate PR. Only contains basic eval and variation tests right now. ![Simulator_Screenshot_-_iPhone_Xs_-_2024-02-12_at_14_04_12](https://github.com/launchdarkly/js-core/assets/1593077/f828a627-e0d0-4a50-b38f-e2098c673433)
- Loading branch information
Showing
5 changed files
with
101 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# LaunchDarkly Github Actions for JavaScript SDKs. | ||
|
||
This directory contains Github Actions for building, deploying, releasing | ||
libraries in this monorepo. | ||
|
||
## Local testing using act | ||
|
||
You can use [act](https://nektosact.com/usage/index.html) to run github actions locally for testing. | ||
|
||
1. Install and run Docker. | ||
2. Install act. | ||
|
||
```shell | ||
brew install act | ||
``` | ||
|
||
3. Run a workflow file. | ||
|
||
```shell | ||
# To run the react-native build/test/e2e | ||
act -W '.github/workflows/react-native.yml' -P macos-14=-self-hosted | ||
``` |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ | |
"ios-log": "react-native log-ios", | ||
"web": "expo start --web --clear", | ||
"clean": "yarn expo-prebuild && yarn cache clean && rm -rf node_modules && rm -rf .expo", | ||
"detox-build-ios": "detox build -c ios.sim.debug", | ||
"detox-run-ios": "detox test -c ios.sim.debug", | ||
"detox-build-ios": "detox build -c ios.sim.release", | ||
"detox-run-ios": "detox test -c ios.sim.release --cleanup --headless", | ||
"detox-ios": "yarn detox-build-ios && yarn detox-run-ios", | ||
"test": "./build-run-detox.sh" | ||
}, | ||
|
@@ -41,5 +41,9 @@ | |
"jest": "^29.7.0", | ||
"ts-jest": "^29.1.1", | ||
"typescript": "^5.2.2" | ||
}, | ||
"packageManager": "[email protected]", | ||
"installConfig": { | ||
"hoistingLimits": "workspaces" | ||
} | ||
} |
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