Skip to content

Commit

Permalink
circleci e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Jan 3, 2024
1 parent 117da31 commit 155c44f
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
version: 2.1

orbs:
gh: circleci/[email protected]
gh: circleci/github-cli@2.3.0
node: circleci/[email protected]
android: circleci/[email protected]
rn: react-native-community/[email protected]

commands:
e2e_build_android:
steps:
- android/restore-gradle-cache
- run: |
yarn e2e:build android.emu.debug
- android/save-gradle-cache

parameters:
version:
Expand All @@ -28,6 +38,32 @@ parameters:
default: ""

jobs:
e2e_android:
executor:
name: rn/linux_android
resource_class: xlarge
steps:
- checkout
- node/install:
install-yarn: true
node-version: '18.18.2'
- rn/yarn_install

# https://github.com/react-native-community/react-native-circleci-orb/issues/144#issuecomment-1073846571
- android/create-avd:
avd-name: Pixel_API_29_AOSP
install: true
system-image: system-images;android-29;default;x86
- android/start-emulator:
avd-name: Pixel_API_29_AOSP
no-window: true
post-emulator-launch-assemble-command: ""

- e2e_build_android
- run: yarn e2e:test android.emu.debug
- store_artifacts:
path: artifacts

test_android_in_pr:
docker:
- image: cimg/android:2022.12
Expand Down Expand Up @@ -354,5 +390,4 @@ workflows:
not:
equal: [main, << pipeline.git.branch >>]
jobs:
- test_android_in_pr
- test_ios_in_pr
- e2e_android

0 comments on commit 155c44f

Please sign in to comment.