Skip to content

Commit 3dee922

Browse files
committed
feat: prepare Android CI
1 parent 057a7ae commit 3dee922

1 file changed

Lines changed: 21 additions & 8 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,31 @@ jobs:
6767

6868
- name: Install dependencies
6969
run: |
70-
# TODO: Install project dependencies
71-
echo "Installing dependencies for ${{ matrix.app }}"
70+
pnpm install
71+
72+
- name: Set up JDK 17
73+
uses: actions/setup-java@v3
74+
with:
75+
java-version: '17'
76+
distribution: 'temurin'
7277

73-
- name: Setup Android environment
78+
- name: Build Android app
79+
working-directory: apps/${{ matrix.app }}
7480
run: |
75-
# TODO: Setup Android SDK, emulator, etc.
76-
echo "Setting up Android environment for ${{ matrix.app }}"
81+
pnpm nx run @react-native-harness/${{ matrix.app }}:build-android
7782
78-
- name: Run E2E tests
83+
- name: Install Android app
84+
working-directory: apps/${{ matrix.app }}
7985
run: |
80-
# TODO: Run E2E tests on Android
81-
echo "Running E2E tests for ${{ matrix.app }} on Android"
86+
pnpm nx run @react-native-harness/${{ matrix.app }}:install-android
87+
88+
- name: Run E2E tests
89+
uses: reactivecircus/android-emulator-runner@v2
90+
with:
91+
api-level: 35
92+
arch: x86_64
93+
profile: Pixel_8_API_35
94+
script: pnpm nx run @react-native-harness/${{ matrix.app }}:start --args='test android-native'
8295

8396
- name: Upload test results
8497
if: always()

0 commit comments

Comments
 (0)