File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments