Skip to content

Commit 73cb811

Browse files
Update Catroid UI test pipeline
1 parent d6698ff commit 73cb811

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ui.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Instrumented tests
1+
name: Catroid UI Test Pipeline
22

33
on:
44
push:
@@ -36,14 +36,17 @@ jobs:
3636
- name: Build APKs
3737
run: ./gradlew -Pindependent='#${{ github.run_number }} ${{ github.ref_name }}' assembleAndroidTest assembleDebug
3838

39+
- name: Debug APK paths
40+
run: find . -name "*.apk"
41+
3942
# see https://www.browserstack.com/docs/app-automate/espresso/getting-started
4043
- name: Upload App APK to BrowserStack
4144
id: upload_app
4245
run: |
4346
RESPONSE=$(curl -s -u "$BROWSERSTACK_USERNAME:$BROWSERSTACK_ACCESS_KEY" \
4447
-X POST "https://api-cloud.browserstack.com/app-automate/espresso/v2/app" \
45-
-F "file=@app/build/outputs/apk/debug/app-debug.apk")
46-
48+
-F "file=@catroid/build/outputs/apk/catroid/debug/catroid-catroid-debug.apk")
49+
4750
echo "$RESPONSE" | tee app_upload_response.json
4851
echo "APP_URL=$(jq -r '.app_url' <<< "$RESPONSE")" >> $GITHUB_ENV
4952
@@ -52,8 +55,8 @@ jobs:
5255
run: |
5356
RESPONSE=$(curl -s -u "$BROWSERSTACK_USERNAME:$BROWSERSTACK_ACCESS_KEY" \
5457
-X POST "https://api-cloud.browserstack.com/app-automate/espresso/v2/test-suite" \
55-
-F "file=@app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk")
56-
58+
-F "file=@catroid/build/outputs/apk/androidTest/catroid/debug/catroid-catroid-debug-androidTest.apk")
59+
5760
echo "$RESPONSE" | tee test_upload_response.json
5861
echo "TEST_URL=$(jq -r '.test_suite_url' <<< "$RESPONSE")" >> $GITHUB_ENV
5962

0 commit comments

Comments
 (0)