Skip to content

Commit

Permalink
ci: add ios maestro step on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
araujobarret committed Jan 4, 2024
1 parent c872a88 commit d958520
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,17 @@ commands:
paths:
- android/build
- android/app/build
- node_modules/react-native-config
- node_modules/react-native-config:
install-maestro:
steps:
- run:
name: Install Maestro
command: curl -Ls "https://get.maestro.mobile.dev" | bash
maestro-run-tests:
steps:
- run:
name: Run tests
command: maestro test e2e/config.yml
jobs:
detect-secrets:
docker:
Expand Down Expand Up @@ -329,6 +339,39 @@ jobs:
- .manifests
- dist

maestro-test-app-ios:
environment:
MAESTRO_APP_ID: net.artsy.artsy

macos:
xcode: 15.1
resource_class: macos.m1.medium.gen1

steps:
- attach_workspace:
at: ../workspace
- restore_cache:
keys:
- v11-test-success-{{ checksum "../workspace/.manifests/native_code" }}
- checkout
- attach_workspace:
at: .
- macos/install-rosetta
- install-node
- setup-env-file
- install-node-modules
- install-maestro
- run-relay-compiler
- install-gems
- install-cocoapods
- macos/preboot-simulator:
version: "17.2"
platform: "iOS"
device: "iPhone 15 Pro"
- run: yarn maestro:ios:release:build
- run: yarn maestro:ios:release:install
- maestro-run-tests

build-test-app-ios:
environment:
BUNDLE_PATH: .vendor # path to install gems and use for caching
Expand Down Expand Up @@ -513,3 +556,12 @@ workflows:
requires:
- build-test-app-ios
- build-test-app-android

- approve-maestro-ios-test:
type: approval
requires:
- build-test-app-ios

- maestro-test-app-ios:
requires:
- approve-maestro-ios-test

0 comments on commit d958520

Please sign in to comment.