|
| 1 | +format_version: "23" |
| 2 | +default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git |
| 3 | +project_type: other |
| 4 | + |
| 5 | +meta: |
| 6 | + bitrise.io: |
| 7 | + stack: osx-xcode-26.0.x-edge |
| 8 | + |
| 9 | +pipelines: |
| 10 | + e2e: |
| 11 | + workflows: |
| 12 | + e2e-package-suite: {} |
| 13 | + e2e-build-react-native-ios: {} |
| 14 | + e2e-build-react-native-android: {} |
| 15 | + e2e-run-browserstack: |
| 16 | + depends_on: |
| 17 | + - e2e-package-suite |
| 18 | + - e2e-build-react-native-ios |
| 19 | + - e2e-build-react-native-android |
| 20 | + parallel: $E2E_RUN_COUNT |
| 21 | + e2e-report: |
| 22 | + depends_on: |
| 23 | + - e2e-run-browserstack |
| 24 | + should_always_run: workflow |
| 25 | + |
| 26 | +workflows: |
| 27 | + e2e-package-suite: |
| 28 | + steps: |
| 29 | + - git-clone@8: {} |
| 30 | + - script@1: |
| 31 | + title: Validate E2E matrix and create suite placeholder |
| 32 | + inputs: |
| 33 | + - content: |- |
| 34 | + set -euo pipefail |
| 35 | + ruby e2e/scripts/e2e_matrix validate |
| 36 | + ruby e2e/scripts/e2e_matrix expand > "$BITRISE_DEPLOY_DIR/e2e-matrix.json" |
| 37 | + mkdir -p "$BITRISE_DEPLOY_DIR/e2e" |
| 38 | + echo "Phase 2 placeholder for BrowserStack Maestro suite zip" > "$BITRISE_DEPLOY_DIR/e2e/maestro-suite.zip" |
| 39 | + envman add --key E2E_MAESTRO_SUITE_ZIP --value "$BITRISE_DEPLOY_DIR/e2e/maestro-suite.zip" |
| 40 | + - deploy-to-bitrise-io@2: |
| 41 | + inputs: |
| 42 | + - pipeline_intermediate_files: |- |
| 43 | + $E2E_MAESTRO_SUITE_ZIP:E2E_MAESTRO_SUITE_ZIP |
| 44 | + $BITRISE_DEPLOY_DIR/e2e-matrix.json:E2E_MATRIX_JSON |
| 45 | +
|
| 46 | + e2e-build-react-native-ios: |
| 47 | + steps: |
| 48 | + - git-clone@8: {} |
| 49 | + - restore-cache@1: |
| 50 | + inputs: |
| 51 | + - key: |- |
| 52 | + rn-ios-{{ checksum "platforms/react-native/pnpm-lock.yaml" }}-{{ checksum "platforms/react-native/sample/ios/Podfile.lock" }} |
| 53 | + - activate-build-cache-for-xcode: {} |
| 54 | + - script@1: |
| 55 | + title: Create React Native iOS artifact placeholder |
| 56 | + inputs: |
| 57 | + - content: |- |
| 58 | + set -euo pipefail |
| 59 | + mkdir -p "$BITRISE_DEPLOY_DIR/e2e" |
| 60 | + echo "Phase 2 placeholder for React Native iOS IPA" > "$BITRISE_DEPLOY_DIR/e2e/react-native-ios.ipa" |
| 61 | + envman add --key E2E_REACT_NATIVE_IOS_APP_PATH --value "$BITRISE_DEPLOY_DIR/e2e/react-native-ios.ipa" |
| 62 | + - deploy-to-bitrise-io@2: |
| 63 | + inputs: |
| 64 | + - pipeline_intermediate_files: |- |
| 65 | + $E2E_REACT_NATIVE_IOS_APP_PATH:E2E_REACT_NATIVE_IOS_APP_PATH |
| 66 | + - save-cache@1: |
| 67 | + inputs: |
| 68 | + - key: |- |
| 69 | + rn-ios-{{ checksum "platforms/react-native/pnpm-lock.yaml" }}-{{ checksum "platforms/react-native/sample/ios/Podfile.lock" }} |
| 70 | + - paths: |- |
| 71 | + platforms/react-native/node_modules |
| 72 | + platforms/react-native/sample/ios/Pods |
| 73 | +
|
| 74 | + e2e-build-react-native-android: |
| 75 | + steps: |
| 76 | + - git-clone@8: {} |
| 77 | + - restore-cache@1: |
| 78 | + inputs: |
| 79 | + - key: |- |
| 80 | + rn-android-{{ checksum "platforms/react-native/pnpm-lock.yaml" }}-{{ checksum "platforms/react-native/sample/android/**/*.gradle*" }} |
| 81 | + - activate-build-cache-for-gradle: {} |
| 82 | + - script@1: |
| 83 | + title: Create React Native Android artifact placeholder |
| 84 | + inputs: |
| 85 | + - content: |- |
| 86 | + set -euo pipefail |
| 87 | + mkdir -p "$BITRISE_DEPLOY_DIR/e2e" |
| 88 | + echo "Phase 2 placeholder for React Native Android APK" > "$BITRISE_DEPLOY_DIR/e2e/react-native-android.apk" |
| 89 | + envman add --key E2E_REACT_NATIVE_ANDROID_APP_PATH --value "$BITRISE_DEPLOY_DIR/e2e/react-native-android.apk" |
| 90 | + - deploy-to-bitrise-io@2: |
| 91 | + inputs: |
| 92 | + - pipeline_intermediate_files: |- |
| 93 | + $E2E_REACT_NATIVE_ANDROID_APP_PATH:E2E_REACT_NATIVE_ANDROID_APP_PATH |
| 94 | + - save-cache@1: |
| 95 | + inputs: |
| 96 | + - key: |- |
| 97 | + rn-android-{{ checksum "platforms/react-native/pnpm-lock.yaml" }}-{{ checksum "platforms/react-native/sample/android/**/*.gradle*" }} |
| 98 | + - paths: |- |
| 99 | + platforms/react-native/node_modules |
| 100 | + ~/.gradle/caches |
| 101 | + ~/.gradle/wrapper |
| 102 | +
|
| 103 | + e2e-run-browserstack: |
| 104 | + steps: |
| 105 | + - git-clone@8: {} |
| 106 | + - pull-intermediate-files@1: |
| 107 | + inputs: |
| 108 | + - artifact_sources: |- |
| 109 | + e2e-package-suite |
| 110 | + e2e-build-react-native-* |
| 111 | + - script@1: |
| 112 | + title: Resolve E2E matrix row placeholder |
| 113 | + inputs: |
| 114 | + - content: |- |
| 115 | + set -euo pipefail |
| 116 | + run_index="${BITRISE_IO_PARALLEL_INDEX:-0}" |
| 117 | + mkdir -p "$BITRISE_DEPLOY_DIR/e2e/results" |
| 118 | + ruby e2e/scripts/e2e_matrix expand --index "$run_index" > "$BITRISE_DEPLOY_DIR/e2e/results/run-${run_index}.json" |
| 119 | + - deploy-to-bitrise-io@2: |
| 120 | + inputs: |
| 121 | + - pipeline_intermediate_files: |- |
| 122 | + $BITRISE_DEPLOY_DIR/e2e/results:E2E_BROWSERSTACK_RESULTS_DIR |
| 123 | +
|
| 124 | + e2e-report: |
| 125 | + steps: |
| 126 | + - git-clone@8: {} |
| 127 | + - pull-intermediate-files@1: |
| 128 | + inputs: |
| 129 | + - artifact_sources: |- |
| 130 | + e2e-run-browserstack |
| 131 | + - script@1: |
| 132 | + title: Placeholder E2E report |
| 133 | + inputs: |
| 134 | + - content: |- |
| 135 | + set -euo pipefail |
| 136 | + echo "Phase 2 placeholder for aggregate E2E reporting" |
0 commit comments