Skip to content

Commit

Permalink
chore: port to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Feb 6, 2024
1 parent ca04b6b commit 6c082a4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 207 deletions.
43 changes: 36 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ jobs:
- nix-with-flake
- local_backend
- android/create-avd:
avd-name: Pixel_API_34_AOSP
avd-name: Pixel_API_29_AOSP
install: true
system-image: system-images;android-34;default;x86_64
- android/start-emulator:
avd-name: Pixel_API_34_AOSP
avd-name: Pixel_API_29_AOSP
no-window: true
post-emulator-launch-assemble-command: ""
- metro_start
Expand All @@ -140,24 +140,40 @@ jobs:
- store_artifacts:
path: artifacts

e2e_ios:
e2e_build_ios:
macos:
xcode: 14.2.0
resource_class: macos.x86.medium.gen2
working_directory: ~/galoy-mobile
shell: /bin/bash --login -o pipefail
steps:
- checkout:
path: ~/galoy-mobile
- prepare_ruby
- install_yarn_deps
- run: yarn e2e:build ios.sim.debug
- persist_to_workspace:
root: ~/galoy-mobile
paths:
- ios/build/Build/Products/Debug-iphonesimulator/Blink.app

e2e_run_ios:
environment:
GALOY_STAGING_GLOBAL_OTP: 403370
macos:
xcode: 14.2.0
resource_class: macos.x86.medium.gen2
working_directory: ~/galoy-mobile
shell: /bin/bash --login -o pipefail
working_directory: ~/galoy-mobile
steps:
- checkout:
path: ~/galoy-mobile
- run: |
brew tap wix/brew
brew install applesimutils
- prepare_ruby
- install_yarn_deps
- metro_start
- run: yarn e2e:build ios.sim.debug
- nix-with-flake
# - local_backend
- rn/ios_simulator_start:
device: iPhone SE (3rd generation)
- run: yarn e2e:test ios.sim.debug -d -R 5 --take-screenshots all --record-videos all --record-logs all
Expand Down Expand Up @@ -344,3 +360,16 @@ workflows:
- equal: ["api", << pipeline.trigger_source >>]
jobs:
- upload_to_app_store
test_in_pr:
when:
not:
equal: [main, << pipeline.git.branch >>]
jobs:
- e2e_build_android
- e2e_run_android:
requires:
- e2e_build_android
- e2e_build_ios
- e2e_run_ios:
requires:
- e2e_build_ios
200 changes: 0 additions & 200 deletions .github/workflows/e2e.yml

This file was deleted.

0 comments on commit 6c082a4

Please sign in to comment.