Skip to content

Add Expo tests #618

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

Merged
merged 16 commits into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .buildkite/expo-pipeline.block.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- block: "Trigger expo pipeline"
key: "trigger-expo-pipeline"

- label: ":pipeline_upload: Expo pipeline"
depends_on: "trigger-expo-pipeline"
agents:
queue: macos
timeout_in_minutes: 2
command: buildkite-agent pipeline upload .buildkite/expo-pipeline.yml
10 changes: 10 additions & 0 deletions .buildkite/expo-pipeline.full.block.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- block: "Trigger expo full pipeline"
key: "trigger-expo-full-pipeline"

- label: ":pipeline_upload: Full Expo pipeline"
depends_on: "trigger-expo-full-pipeline"
agents:
queue: macos
timeout_in_minutes: 2
command: buildkite-agent pipeline upload .buildkite/expo-pipeline.full.yml
116 changes: 116 additions & 0 deletions .buildkite/expo-pipeline.full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
agents:
queue: "opensource"

steps:
- group: "Expo Tests"
steps:
#
# Test fixtures
#
- label: ':android: Build Expo {{matrix}} APK'
key: "build-expo-apk-full"
timeout_in_minutes: 20
agents:
queue: "macos-14"
env:
JAVA_VERSION: "17"
EXPO_VERSION: "{{matrix}}"
BUILD_ANDROID: 1
artifact_paths: test/react-native/features/fixtures/generated/expo/**/test-fixture/output.apk
commands:
- bundle install
- ./bin/generate-expo-fixture
matrix:
- "51"
- "50"

- label: ':mac: Build Expo {{matrix}} IPA'
key: "build-expo-ipa-full"
timeout_in_minutes: 20
agents:
queue: "macos-14"
env:
EXPO_VERSION: "{{matrix}}"
BUILD_IOS: 1
artifact_paths: test/react-native/features/fixtures/generated/expo/**/test-fixture/output.ipa
commands:
- bundle install
- ./bin/generate-expo-fixture
matrix:
- "51"
- "50"

#
# End-to-end tests
#
- label: ":bitbar: :android: Expo {{matrix}} Android 15 end-to-end tests"
depends_on: "build-expo-apk-full"
timeout_in_minutes: 20
plugins:
artifacts#v1.9.0:
download: "test/react-native/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.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=/app/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.apk
- --farm=bb
- --device=ANDROID_15
- --a11y-locator
- --appium-version=1.22
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
EXPO_VERSION: "{{matrix}}"
retry:
manual:
permit_on_passed: true
concurrency: 25
concurrency_group: "bitbar"
concurrency_method: eager
matrix:
- "51"
- "50"

- label: ":bitbar: :mac: Expo {{matrix}} iOS 16 end-to-end tests"
depends_on: "build-expo-ipa-full"
timeout_in_minutes: 20
plugins:
artifacts#v1.9.0:
download: "test/react-native/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.ipa"
upload: ./test/react-native/maze_output/**/*
docker-compose#v4.12.0:
pull: react-native-maze-runner
run: react-native-maze-runner
service-ports: true
command:
- --app=/app/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.ipa
- --farm=bb
- --device=IOS_16
- --a11y-locator
- --appium-version=1.22
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
EXPO_VERSION: "{{matrix}}"
retry:
manual:
permit_on_passed: true
concurrency: 25
concurrency_group: "bitbar"
concurrency_method: eager
matrix:
- "51"
- "50"
114 changes: 114 additions & 0 deletions .buildkite/expo-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
agents:
queue: "opensource"

steps:
- group: "Expo Tests"
steps:
#
# Test fixtures
#
- label: ':android: Build Expo {{matrix}} APK'
key: "build-expo-apk"
timeout_in_minutes: 20
agents:
queue: "macos-14"
env:
JAVA_VERSION: "17"
EXPO_VERSION: "{{matrix}}"
BUILD_ANDROID: 1
artifact_paths: test/react-native/features/fixtures/generated/expo/**/test-fixture/output.apk
commands:
- bundle install
- ./bin/generate-expo-fixture
matrix:
- "52"

- label: ':mac: Build Expo {{matrix}} IPA'
key: "build-expo-ipa"
timeout_in_minutes: 20
agents:
queue: "macos-14"
env:
EXPO_VERSION: "{{matrix}}"
BUILD_IOS: 1
artifact_paths: test/react-native/features/fixtures/generated/expo/**/test-fixture/output.ipa
commands:
- bundle install
- ./bin/generate-expo-fixture
matrix:
- "52"

#
# End-to-end tests
#
- label: ":bitbar: :android: Expo {{matrix}} Android 15 end-to-end tests"
depends_on: "build-expo-apk"
timeout_in_minutes: 20
plugins:
artifacts#v1.9.0:
download: "test/react-native/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.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=/app/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.apk
- --farm=bb
- --device=ANDROID_15
- --a11y-locator
- --fail-fast
- --appium-version=1.22
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
EXPO_VERSION: "{{matrix}}"
retry:
manual:
permit_on_passed: true
concurrency: 25
concurrency_group: "bitbar"
concurrency_method: eager
matrix:
- "52"

- label: ":bitbar: :mac: Expo {{matrix}} iOS 16 end-to-end tests"
depends_on: "build-expo-ipa"
timeout_in_minutes: 20
plugins:
artifacts#v1.9.0:
download: "test/react-native/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.ipa"
upload: ./test/react-native/maze_output/**/*
docker-compose#v4.12.0:
pull: react-native-maze-runner
run: react-native-maze-runner
service-ports: true
command:
- --app=/app/features/fixtures/generated/expo/{{matrix}}/test-fixture/output.ipa
- --farm=bb
- --device=IOS_16
- --a11y-locator
- --fail-fast
- --appium-version=1.22
- --no-tunnel
- --aws-public-ip
test-collector#v1.10.2:
files: "reports/TEST-*.xml"
format: "junit"
branch: "^main|next$$"
api-token-env-name: "REACT_NATIVE_PERFORMANCE_BUILDKITE_ANALYTICS_TOKEN"
env:
EXPO_VERSION: "{{matrix}}"
retry:
manual:
permit_on_passed: true
concurrency: 25
concurrency_group: "bitbar"
concurrency_method: eager
matrix:
- "52"
10 changes: 10 additions & 0 deletions .buildkite/scripts/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,15 @@
"pipeline": ".buildkite/react-native-navigation-pipeline.full.yml",
"block": ".buildkite/react-native-navigation-pipeline.full.block.yml",
"paths": []
},
{
"pipeline": ".buildkite/expo-pipeline.yml",
"block": ".buildkite/expo-pipeline.block.yml",
"paths": []
},
{
"pipeline": ".buildkite/expo-pipeline.full.yml",
"block": ".buildkite/expo-pipeline.full.block.yml",
"paths": []
}
]
2 changes: 1 addition & 1 deletion .buildkite/scripts/pipeline-trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (baseBranch) {
execSync(`git --no-pager diff --name-only origin/${baseBranch}`, { stdio: 'inherit' });
}

packages.forEach(({ paths, block, pipeline }) => {
packages.reverse().forEach(({ paths, block, pipeline }) => {
let upload = false;

if (commitMessage.includes("[full ci]") ||
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source 'https://rubygems.org'

gem 'cocoapods'
gem 'fastlane'
Loading