forked from Olympic/NTO-2025-Client-Android
Update .gitea/workflows/workflow.yml
This commit is contained in:
@@ -47,15 +47,21 @@ jobs:
|
|||||||
- name: Checkout tests
|
- name: Checkout tests
|
||||||
run: python3 /opt/scripts/copy-tests.py --repo-url "Olympic/NTO-2025-Client-Android-tests" --branch "main"
|
run: python3 /opt/scripts/copy-tests.py --repo-url "Olympic/NTO-2025-Client-Android-tests" --branch "main"
|
||||||
|
|
||||||
|
- name: Uninstall APK before tests (Gradle)
|
||||||
|
run: |
|
||||||
|
chmod +x ./gradlew
|
||||||
|
./gradlew uninstallAll
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
chmod +x ./gradlew
|
chmod +x ./gradlew
|
||||||
if [ -z "$ANDROID_SERIAL" ]; then
|
./gradlew connectedDebugAndroidTest
|
||||||
echo "Ошибка: ANDROID_SERIAL не задана для этого runner'а."
|
|
||||||
exit 1
|
- name: Uninstall APK after tests (Gradle)
|
||||||
fi
|
run: |
|
||||||
echo "Запуск тестов на устройстве: $ANDROID_SERIAL"
|
chmod +x ./gradlew
|
||||||
./gradlew -Padb.device.serial=${ANDROID_SERIAL} connectedDebugAndroidTest
|
./gradlew uninstallAll
|
||||||
|
if: always()
|
||||||
|
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
uses: christopherHX/gitea-upload-artifact@v4
|
uses: christopherHX/gitea-upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user