@@ -11,10 +11,10 @@ jobs:
1111 runs-on : macos-latest
1212 strategy :
1313 matrix :
14- api-level : [27 ]
14+ api-level : [ 27 ]
1515 steps :
1616 - name : Checkout
17- uses : actions/checkout@v2
17+ uses : actions/checkout@v3
1818 - name : Start adb server
1919 run : adb devices
2020 - name : Download system image "android-${{ matrix.api-level }}"
@@ -27,12 +27,23 @@ jobs:
2727 - run : adb shell settings put global window_animation_scale 0.0
2828 - run : adb shell settings put global transition_animation_scale 0.0
2929 - run : adb shell settings put global animator_duration_scale 0.0
30+ - name : Setup Java
31+ uses : actions/setup-java@v3
32+ with :
33+ distribution : ' microsoft'
34+ java-version : ' 11'
3035 - name : Package Installation
31- run : npm install
36+ run : npm i
37+ - name : Install react-native
38+ run : npm install -g react-native
39+ - name : Setup Android tests
40+ run : npm run build:tests && npm run test:setup:android
41+ - name : Remove react-native
42+ run : npm remove -g react-native
3243 - name : Install react-native-cli
33- run : npm install react-native-cli
34- - name : test:android
35- run : npm run test:android
44+ run : npm install -g react-native-cli
45+ - name : Run Android test
46+ run : npm run test:fast: android
3647
3748 test-iOS :
3849 name : Test iOS app
4455 run : npm install
4556 - name : Install react-native-cli
4657 run : npm install react-native-cli
58+ - name : Install reacti-native
59+ run : npm install react-native
4760 - name : Build tests
4861 run : npm run build:tests
4962 - name : Setup tests
0 commit comments