-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add Detox e2e tests for RN SDK. #376
Merged
+101
−12
Merged
Changes from 18 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
039d05a
chore: Added initial Detox CI config for react-native.
yusinto 2d1d098
chore: Get ssm mobile key.
yusinto f5c453b
chore: Add instructions to test github actions locally.
yusinto 0d424de
Update README.md
yusinto 1a312b9
Update react-native.yml
yusinto 668b68e
chore: Hardcode xcode version to fix pod install glog error.
yusinto e78d8ea
Update react-native.yml
yusinto 846d617
Update react-native.yml
yusinto 2fad756
chore: Update osx runner to 14 to use latest xcode.
yusinto 95b161a
chore: Fixing visibility test failure.
yusinto 03ccac0
Update README.md
yusinto 5bfd752
Update package.json
yusinto 84ae6e1
Update package.json
yusinto b26c65a
Update .detoxrc.js
yusinto 95e6da1
Update starter.test.ts
yusinto e7874af
chore: Attempt to fix broken variation test.
yusinto 42c17bc
Update react-native.yml
yusinto fe71d08
Update welcome.tsx
yusinto 16ecb60
chore: Restore build-test job.
yusinto 0ea0b57
chore: Added scrollable output.
yusinto f55a8b6
Merge branch 'main' into yus/sc-228487/detox-in-ci
yusinto 2d0d4a7
Update react-native.yml
yusinto fdfabda
Update react-native.yml
yusinto 954a7ca
Update react-native.yml
yusinto d776b85
Update package.json
yusinto eacb54e
Update react-native.yml
yusinto 017a574
Update react-native.yml
yusinto 23190fb
fix: Set hoisting limits so example app uses its own external deps.
yusinto 9c23a75
chore: Install only packages for example app.
yusinto 0b10bc8
Update react-native.yml
yusinto c3c6e17
Update react-native.yml
yusinto 51bbe23
Update react-native.yml
yusinto 3c0aee8
Update react-native.yml
yusinto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -5,24 +5,24 @@ | |
"scripts": { | ||
"start": "expo start --reset-cache", | ||
"expo-prebuild": "CI=1 expo prebuild --clean", | ||
"android": "yarn link-dev && expo run:android", | ||
"android-release": "yarn link-dev && expo run:android --variant release", | ||
"android-go": "yarn link-dev && expo start --android --clear", | ||
"android": "expo run:android", | ||
"android-release": "expo run:android --variant release", | ||
"android-go": "expo start --android --clear", | ||
"android-log": "react-native log-android", | ||
"ios": "yarn link-dev && expo run:ios", | ||
"ios-release": "yarn link-dev && expo run:ios --configuration Release", | ||
"ios-go": "yarn link-dev && expo start --ios --clear", | ||
"ios": "expo run:ios", | ||
"ios-release": "expo run:ios --configuration Release", | ||
"ios-go": "expo start --ios --clear", | ||
"ios-log": "react-native log-ios", | ||
"web": "yarn link-dev && expo start --web --clear", | ||
"web": "expo start --web --clear", | ||
"clean": "yarn expo-prebuild && yarn cache clean && rm -rf node_modules && rm -rf .expo", | ||
"link-dev": "(cd .. && yarn build)", | ||
"postinstall": "yarn link-dev", | ||
"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", | ||
Comment on lines
+18
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use release builds for e2e tests instead of debug builds. |
||
"detox-ios": "yarn detox-build-ios && yarn detox-run-ios", | ||
"test": "./build-run-detox.sh" | ||
}, | ||
"dependencies": { | ||
"@launchdarkly/react-native-client-sdk": "^10.0.0", | ||
"@react-native-async-storage/async-storage": "^1.21.0", | ||
"expo": "~50.0.6", | ||
"expo-splash-screen": "~0.26.4", | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metro no longer needed in release builds when running e2e.