Skip to content

Commit

Permalink
Merge pull request #2077 from bugsnag/rn073-tests
Browse files Browse the repository at this point in the history
Add React Native 0.73 tests
  • Loading branch information
yousif-bugsnag authored Jan 31, 2024
2 parents ca561a4 + b8c93d5 commit a501093
Show file tree
Hide file tree
Showing 78 changed files with 10,595 additions and 90 deletions.
58 changes: 29 additions & 29 deletions .buildkite/basic/react-native-android-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ steps:
#
# Android builder
#
- label: ":docker: Build RN Android Builder image"
key: "android-builder-image"
- label: ":docker: Build RN Android Builder image (Java 17, Node 18)"
key: "android-builder-image-java-17-node-18"
timeout_in_minutes: 30
plugins:
- docker-compose#v4.12.0:
build: react-native-android-builder
build: react-native-android-builder-java-17-node-18
image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
cache-from: react-native-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
cache-from: react-native-android-builder-java-17-node-18:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
- docker-compose#v4.12.0:
push: react-native-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
push: react-native-android-builder-java-17-node-18:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
retry:
automatic:
- exit_status: "*"
Expand All @@ -23,41 +23,41 @@ steps:
#
# Test fixtures
#
- label: ":android: Build RN 0.72 (Old Arch) apk"
key: "rn-0-72-old-arch-apk"
- label: ":android: Build RN 0.73 (Old Arch) apk"
key: "rn-0-73-old-arch-apk"
depends_on:
- "android-builder-image"
- "android-builder-image-java-17-node-18"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.72"
REACT_NATIVE_VERSION: "rn0.73"
RN_NEW_ARCH: "false"
ARTEFACT_NAME: "rn0.72-old-arch"
ARTEFACT_NAME: "rn0.73-old-arch"
plugins:
- docker-compose#v4.12.0:
pull: react-native-android-builder
run: react-native-android-builder
pull: react-native-android-builder-java-17-node-18
run: react-native-android-builder-java-17-node-18
artifact_paths:
- build/rn0.72-old-arch.apk
- build/rn0.73-old-arch.apk
retry:
automatic:
- exit_status: "*"
limit: 1

- label: ":android: Build RN 0.72 (New Arch) apk"
key: "rn-0-72-new-arch-apk"
- label: ":android: Build RN 0.73 (New Arch) apk"
key: "rn-0-73-new-arch-apk"
depends_on:
- "android-builder-image"
- "android-builder-image-java-17-node-18"
timeout_in_minutes: 60
env:
REACT_NATIVE_VERSION: "rn0.72"
REACT_NATIVE_VERSION: "rn0.73"
RN_NEW_ARCH: "true"
ARTEFACT_NAME: "rn0.72-new-arch"
ARTEFACT_NAME: "rn0.73-new-arch"
plugins:
- docker-compose#v4.12.0:
pull: react-native-android-builder
run: react-native-android-builder
pull: react-native-android-builder-java-17-node-18
run: react-native-android-builder-java-17-node-18
artifact_paths:
- build/rn0.72-new-arch.apk
- build/rn0.73-new-arch.apk
retry:
automatic:
- exit_status: "*"
Expand All @@ -66,19 +66,19 @@ steps:
#
# End-to-end tests
#
- label: ":bitbar: :android: RN 0.72 (Old Arch) Android 12 end-to-end tests"
depends_on: "rn-0-72-old-arch-apk"
- label: ":bitbar: :android: RN 0.73 (Old Arch) Android 12 end-to-end tests"
depends_on: "rn-0-73-old-arch-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.9.0:
download: "build/rn0.72-old-arch.apk"
download: "build/rn0.73-old-arch.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v4.7.0:
pull: react-native-maze-runner
run: react-native-maze-runner
service-ports: true
command:
- --app=build/rn0.72-old-arch.apk
- --app=build/rn0.73-old-arch.apk
- --app-activity=com.reactnative.MainActivity
- --app-package=com.reactnative
- --farm=bb
Expand All @@ -94,19 +94,19 @@ steps:
concurrency_group: "bitbar"
concurrency_method: eager

- label: ":bitbar: :android: RN 0.72 (New Arch) Android 12 end-to-end tests"
depends_on: "rn-0-72-new-arch-apk"
- label: ":bitbar: :android: RN 0.73 (New Arch) Android 12 end-to-end tests"
depends_on: "rn-0-73-new-arch-apk"
timeout_in_minutes: 60
plugins:
artifacts#v1.9.0:
download: "build/rn0.72-new-arch.apk"
download: "build/rn0.73-new-arch.apk"
upload: ./test/react-native/maze_output/**/*
docker-compose#v4.7.0:
pull: react-native-maze-runner
run: react-native-maze-runner
service-ports: true
command:
- --app=build/rn0.72-new-arch.apk
- --app=build/rn0.73-new-arch.apk
- --app-activity=com.reactnative.MainActivity
- --app-package=com.reactnative
- --farm=bb
Expand Down
88 changes: 88 additions & 0 deletions .buildkite/basic/react-native-ios-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,46 @@ steps:
- exit_status: "*"
limit: 1

- label: ":ios: Build RN 0.73 (Old Arch) ipa"
key: "rn-0-73-old-arch-ipa"
timeout_in_minutes: 60
agents:
queue: "opensource-arm-mac-cocoa-12"
env:
NODE_VERSION: "18"
REACT_NATIVE_VERSION: "rn0.73"
LANG: "en_US.UTF-8"
DEVELOPER_DIR: "/Applications/Xcode14.app"
RCT_NEW_ARCH_ENABLED: "0"
ARTEFACT_NAME: "rn0.73-old-arch"
artifact_paths: build/rn0.73-old-arch.ipa
commands:
- npm run test:build-react-native-ios
retry:
automatic:
- exit_status: "*"
limit: 1

# - label: ":ios: Build RN 0.73 (New Arch) ipa"
# key: "rn-0-73-new-arch-ipa"
# timeout_in_minutes: 60
# agents:
# queue: "opensource-arm-mac-cocoa-12"
# env:
# NODE_VERSION: "18"
# REACT_NATIVE_VERSION: "rn0.73"
# LANG: "en_US.UTF-8"
# DEVELOPER_DIR: "/Applications/Xcode14.app"
# RCT_NEW_ARCH_ENABLED: "1"
# ARTEFACT_NAME: "rn0.73-new-arch"
# artifact_paths: build/rn0.73-new-arch.ipa
# commands:
# - npm run test:build-react-native-ios
# retry:
# automatic:
# - exit_status: "*"
# limit: 1

#
# End-to-end tests
#
Expand Down Expand Up @@ -94,3 +134,51 @@ steps:
concurrency: 5
concurrency_group: "browserstack-app"
concurrency_method: eager

- label: ":ios: RN 0.73 (Old Arch) iOS 14 end-to-end tests"
depends_on: "rn-0-73-old-arch-ipa"
timeout_in_minutes: 60
plugins:
artifacts#v1.5.0:
download: "build/rn0.73-old-arch.ipa"
upload: ./test/react-native/maze_output/**/*
docker-compose#v4.12.0:
pull: react-native-maze-runner
run: react-native-maze-runner
use-aliases: true
command:
- --app=build/rn0.73-old-arch.ipa
- --farm=bs
- --device=IOS_14
- --a11y-locator
- --fail-fast
env:
SKIP_NAVIGATION_SCENARIOS: "true"
HERMES: "true"
concurrency: 5
concurrency_group: "browserstack-app"
concurrency_method: eager

# - label: ":ios: RN 0.73 (New Arch) iOS 14 end-to-end tests"
# depends_on: "rn-0-73-new-arch-ipa"
# timeout_in_minutes: 60
# plugins:
# artifacts#v1.5.0:
# download: "build/rn0.73-new-arch.ipa"
# upload: ./test/react-native/maze_output/**/*
# docker-compose#v4.12.0:
# pull: react-native-maze-runner
# run: react-native-maze-runner
# use-aliases: true
# command:
# - --app=build/rn0.73-new-arch.ipa
# - --farm=bs
# - --device=IOS_14
# - --a11y-locator
# - --fail-fast
# env:
# SKIP_NAVIGATION_SCENARIOS: "true"
# HERMES: "true"
# concurrency: 5
# concurrency_group: "browserstack-app"
# concurrency_method: eager
4 changes: 2 additions & 2 deletions .buildkite/full/pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: FULL REACT NATIVE (ANDROID) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on:
- "publish-js"
- "android-builder-image"
- "android-builder-base-java-11"
commands:
- buildkite-agent pipeline upload .buildkite/full/react-native-android-pipeline.full.yml

Expand All @@ -19,7 +19,7 @@ steps:
- label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE CLI STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:"
depends_on:
- "publish-js"
- "android-builder-base"
- "android-builder-base-java-11"
commands:
- buildkite-agent pipeline upload .buildkite/full/react-native-cli-pipeline.full.yml

Expand Down
Loading

0 comments on commit a501093

Please sign in to comment.