Skip to content

Commit

Permalink
fix RN SDK remote test (#3444)
Browse files Browse the repository at this point in the history
## Description

merging these fixes. they solve some but not all issues with the CI
task. more work needs to be done to get it working properly.
  • Loading branch information
samijaber committed Jul 31, 2024
1 parent 575f822 commit 2de7dbf
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 70 deletions.
29 changes: 29 additions & 0 deletions .easignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
# Need `.easignore` to exist to prevent EAS from trying to use `.gitignore`s across the monorepo, which caused issues.
# This is mostly a copy/paste of the sibling `.gitignore` with some modifications

# exclude all unnecessary stuff to keep the size of the EAS archive small
.changeset
.github
.husky

# Ignore root-level folders
/examples
/plugins
/scripts
/starters

# But allow these folders in nested packages
!packages/**/examples
!packages/**/plugins
!packages/**/scripts
!packages/**/starters

# excluding everything except the monorepo packages
packages/*
!packages/sdks
!packages/sdks-tests
!packages/react
!packages/core
!packages/react-tests

*.tar.gz

# original .gitignore below
node_modules
*.log
dist
test-lib/**/*.js
coverage
.history
Expand Down
67 changes: 0 additions & 67 deletions .github/workflows/react-native-sdk.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,56 @@
build:
name: Create a build and run Maestro tests on it
steps:
- eas/build
# https://github.com/expo/eas-custom-builds-example/blob/main/.eas/build/ios-simulator-build.yml
# START OF ios-simulator-build.yml
- eas/checkout
- eas/install_node_modules

# addition
- run:
id: build-sdk
name: Build SDK
command: yarn nx build @builder.io/sdk-react-native

- eas/resolve_build_config
- eas/prebuild
- run:
name: Install pods
working_directory: ./ios
command: pod install
# if you are not using EAS Update you can remove this step from your config
# https://docs.expo.dev/eas-update/introduction/
- eas/configure_eas_update:
inputs:
throw_if_not_configured: false
- eas/generate_gymfile_from_template
- eas/run_fastlane
- eas/find_and_upload_build_artifacts
# END OF ios-simulator-build.yml

- eas/send_slack_message:
if: ${ failure() }
name: Send Slack message when the build fails (iOS)
inputs:
slack_hook_url: ${ eas.env.SLACK_RN_SDK_HOOK_URL }
payload:
message: |
iOS build and test failed.
Link: ${ eas.job.expoBuildUrl }
Error: ${ steps.run_fastlane.error_text }
- eas/maestro_test:
inputs:
flow_path: |
maestro/home.yaml
- eas/send_slack_message:
if: ${ failure() }
name: Send Slack message when the test fails (iOS)
inputs:
slack_hook_url: ${ eas.env.SLACK_RN_SDK_HOOK_URL }
payload:
message: |
iOS build and test failed.
Link: ${ eas.job.expoBuildUrl }
Error: ${ steps.maestro_test.error_text }
3 changes: 1 addition & 2 deletions packages/sdks/e2e/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "@e2e/react-native",
"main": "expo-router/entry",
"scripts": {
"eas-build-pre-install": "./eas-hooks/eas-build-pre-install.sh",
"eas-build-on-success": "./eas-hooks/eas-build-on-success.sh",
"eas-build-pre-install": "yarn nx build @builder.io/sdk-react-native",
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
Expand Down

0 comments on commit 2de7dbf

Please sign in to comment.