-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Detox iOS test workflow and install necessary dependencies
- Loading branch information
Showing
2 changed files
with
46 additions
and
1 deletion.
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
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,42 @@ | ||
name: Detox iOS Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
detox-ios: | ||
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.10.0' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Install example dependencies | ||
run: cd example ; yarn install ; cd - | ||
|
||
- name: Install Pods | ||
run: cd example/ios && pod install && cd ../.. | ||
|
||
- name: Start Metro Bundler | ||
run: yarn example start --reset-cache & | ||
env: | ||
RCT_METRO_PORT: 8081 | ||
|
||
- name: Build the app for testing | ||
run: yarn example detox build --configuration ios.sim.release | ||
|
||
- name: Run Detox tests | ||
run: yarn example detox test --configuration ios.sim.release --cleanup |