diff --git a/.github/workflows/end_to_end_tests_internal.yml b/.github/workflows/end_to_end_tests_internal.yml index 23c8c644..52faa576 100644 --- a/.github/workflows/end_to_end_tests_internal.yml +++ b/.github/workflows/end_to_end_tests_internal.yml @@ -121,6 +121,23 @@ jobs: emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true script: avdmanager list device && adb devices && adb -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps; settings delete global hidden_api_policy_p_apps; settings delete global hidden_api_policy' && sleep 10 && adb install "$APK_PATH" && cd cryptox-android-autotests && mvn clean install # Run tests + + - name: Submit TestNG results to Testmo + if: always() + working-directory: cryptox-android-autotests + run: | + npx @testmo/testmo-cli automation:run:submit \ + --instance "${TESTMO_PROJECT_URL}" \ + --project-id "${TESTMO_PROJECT_ID}" \ + --name "CryptoX Android E2E (internal)" \ + --source "cryptox-android-autotests" \ + --results "target/surefire-reports/**/*.xml" + env: + TESTMO_PROJECT_URL: ${{ secrets.TESTMO_PROJECT_URL }} + TESTMO_API_TOKEN: ${{ secrets.TESTMO_API_TOKEN}} + TESTMO_PROJECT_ID: ${{ secrets.TESTMO_PROJECT_ID }} + + - name: Upload Screenshots on Failure if: failure() uses: actions/upload-artifact@v4