Update .gitea/workflows/workflow.yml

This commit is contained in:
2025-11-16 18:43:07 +00:00
parent 9db0d658d9
commit 07b38a022b

View File

@@ -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