11name : Test Blank React Native app
22
33on :
4- push :
5- branches :
6- - develop
74
85 workflow_dispatch :
96 inputs :
129 required : true
1310 type : choice
1411 options :
15- - ' React Native '
12+ - ' ReactNative '
1613 - ' Expo'
17- default : ' React Native '
14+ default : ' ReactNative '
1815 version :
1916 description : ' Version (RN e.g. 0.80.2 OR Expo SDK e.g. 52.0.0)'
2017 required : true
7875 id : vars
7976 shell : bash
8077 run : |
81- PLATFORM="${{ github.event. inputs.platform || 'Expo' }}"
82- RUN_IOS="${{ github.event. inputs.run_ios || 'true' }}"
83- RUN_ANDROID="${{ github.event. inputs.run_android || 'true' }}"
78+ PLATFORM="${{ inputs.platform || github.event.inputs.platform }}"
79+ RUN_IOS="${{ inputs.run_ios || github.event.inputs.run_ios }}"
80+ RUN_ANDROID="${{ inputs.run_android || github.event.inputs.run_android }}"
8481
8582 echo "platform=$PLATFORM" >> "$GITHUB_OUTPUT"
8683 echo "run_ios=$RUN_IOS" >> "$GITHUB_OUTPUT"
@@ -102,13 +99,13 @@ jobs:
10299
103100 - name : Generate Fixture
104101 run : |
105- VERSION="${{ github.event. inputs.version || '52' }}"
102+ VERSION="${{ inputs.version || github.event.inputs.version }}"
106103 bash ./e2e-tests/scripts/setup.sh ${{ env.APP_DIR }} "${{ steps.vars.outputs.platform }}" "$VERSION"
107104
108105 - name : Upload Fixture
109106 uses : actions/upload-artifact@v4
110107 with :
111- name : fixture
108+ name : fixture-${{ steps.vars.outputs.platform }}
112109 path : ${{ env.APP_DIR }}
113110 retention-days : 1
114111
@@ -132,7 +129,7 @@ jobs:
132129 - name : Download Fixture
133130 uses : actions/download-artifact@v4
134131 with :
135- name : fixture
132+ name : fixture-${{ needs.setup.outputs.platform }}
136133
137134 - name : Setup Node.js
138135 uses : actions/setup-node@v4
@@ -169,7 +166,7 @@ jobs:
169166 if : always()
170167 uses : actions/upload-artifact@v4
171168 with :
172- name : appium_failure_ios
169+ name : appium_failure_ios_${{ needs.setup.outputs.platform }}
173170 path : appium_failure.png
174171 if-no-files-found : ignore
175172 retention-days : 1
@@ -178,7 +175,7 @@ jobs:
178175 if : always()
179176 uses : actions/upload-artifact@v4
180177 with :
181- name : appium_page_source_ios
178+ name : appium_page_source_ios_${{ needs.setup.outputs.platform }}
182179 path : appium_page_source.xml
183180 if-no-files-found : ignore
184181 retention-days : 1
@@ -207,7 +204,7 @@ jobs:
207204 - name : Download Fixture
208205 uses : actions/download-artifact@v4
209206 with :
210- name : fixture
207+ name : fixture-${{ needs.setup.outputs.platform }}
211208
212209 - name : Setup Android Emulator
213210 uses : ./.github/actions/setup-android-emulator
@@ -247,7 +244,7 @@ jobs:
247244 if : always()
248245 uses : actions/upload-artifact@v4
249246 with :
250- name : appium_failure_android
247+ name : appium_failure_android_${{ needs.setup.outputs.platform }}
251248 path : appium_failure.png
252249 if-no-files-found : ignore
253250 retention-days : 1
@@ -256,7 +253,7 @@ jobs:
256253 if : always()
257254 uses : actions/upload-artifact@v4
258255 with :
259- name : appium_page_source_android
256+ name : appium_page_source_android_${{ needs.setup.outputs.platform }}
260257 path : appium_page_source.xml
261258 if-no-files-found : ignore
262259 retention-days : 1
0 commit comments