@@ -33,52 +33,33 @@ jobs:
3333 uses : ./.github/actions/setup-node
3434 - name : Run yarn
3535 uses : ./.github/actions/yarn-install
36- - name : Set up JDK 17
37- uses : actions/setup-java@v5
38- with :
39- java-version : ' 17'
40- distribution : ' zulu'
41- - name : Download Maven Local
42- uses : actions/download-artifact@v7
43- with :
44- name : maven-local
45- path : /tmp/react-native-tmp/maven-local
4636 - name : Download React Native Package
37+ if : matrix.flavor == 'debug'
4738 uses : actions/download-artifact@v7
4839 with :
4940 name : react-native-package
5041 path : /tmp/react-native-tmp
51- - name : Print /tmp folder
52- run : ls -lR /tmp/react-native-tmp
53- - name : Prepare artifacts
54- id : prepare-artifacts
42+ - name : Prepare Metro workspace
43+ if : matrix.flavor == 'debug'
5544 run : |
5645 REACT_NATIVE_PKG=$(find /tmp/react-native-tmp -type f -name "*.tgz")
57- echo "React Native tgs is $REACT_NATIVE_PKG"
58-
59- MAVEN_LOCAL=/tmp/react-native-tmp/maven-local
60- echo "Maven local path is $MAVEN_LOCAL"
6146
6247 # For stable branches, we want to use the stable branch of the template
6348 # In all the other cases, we want to use "main"
6449 BRANCH=${{ github.ref_name }}
6550 if ! [[ $BRANCH == *-stable* ]]; then
6651 BRANCH=main
6752 fi
68- node ./scripts/e2e/init-project-e2e.js --projectName RNTestProject --currentBranch $BRANCH --directory /tmp/RNTestProject --pathToLocalReactNative $REACT_NATIVE_PKG
69-
70- echo "Feed maven local to gradle.properties"
71- cd /tmp/RNTestProject
72- echo -e "\nreact.internal.mavenLocalRepo=$MAVEN_LOCAL" >> android/gradle.properties
73-
74- # Build
75- cd android
76- CAPITALIZED_FLAVOR=$(echo "${{ matrix.flavor }}" | awk '{print toupper(substr($0, 1, 1)) substr($0, 2)}')
77- ./gradlew --no-daemon \
78- --init-script "$GITHUB_WORKSPACE/.github/workflow-scripts/legacy-jni-packaging.gradle" \
79- assemble$CAPITALIZED_FLAVOR \
80- -PreactNativeArchitectures=arm64-v8a
81-
53+ node ./scripts/e2e/init-project-e2e.js \
54+ --projectName RNTestProject \
55+ --currentBranch "$BRANCH" \
56+ --directory /tmp/RNTestProject \
57+ --pathToLocalReactNative "$REACT_NATIVE_PKG"
58+ - name : Download template app APK
59+ uses : actions/download-artifact@v7
60+ with :
61+ name : android-templateapp-${{ matrix.flavor }}
62+ path : /tmp/android-templateapp
8263 - name : Download previous per-flow test state
8364 if : ${{ inputs.retry-attempt > 0 }}
8465 continue-on-error : true
@@ -103,10 +84,9 @@ jobs:
10384 uses : ./.github/actions/maestro-android
10485 timeout-minutes : 90
10586 with :
106- app-path : /tmp/RNTestProject/ android/app/build/outputs/apk/${{ matrix.flavor }} /app-${{ matrix.flavor }}.apk
87+ app-path : /tmp/android-templateapp /app-${{ matrix.flavor }}.apk
10788 app-id : com.rntestproject
10889 maestro-flow : ./scripts/e2e/.maestro/
109- install-java : ' false'
11090 flavor : ${{ matrix.flavor }}
11191 working-directory : /tmp/RNTestProject
11292 emulator-api-level : ' 35'
0 commit comments