Use FOREGROUND_SERVICE_TYPE_SHORT_SERVICE for adb pairing #103
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| GRADLE_VERSION: "8.13" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 (Temurin) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: gradle | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| with: | |
| packages: | | |
| platforms;android-36 build-tools;36.0.0 | |
| - name: Install Gradle (no wrapper) | |
| run: | | |
| curl -L -o gradle-${GRADLE_VERSION}-bin.zip https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip | |
| unzip -q gradle-${GRADLE_VERSION}-bin.zip -d "$HOME/gradle" | |
| echo "$HOME/gradle/gradle-${GRADLE_VERSION}/bin" >> "$GITHUB_PATH" | |
| gradle --version | |
| - name: Run unit tests (debug) | |
| run: gradle --no-daemon testDebugUnitTest --stacktrace --info | |
| - name: Upload unit test reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-test-reports-${{ github.run_number }} | |
| path: | | |
| **/build/reports/tests/testDebugUnitTest/** | |
| **/build/test-results/testDebugUnitTest/** |