fix(android): stop ActiveCallService when restarted with no calls metadata #84
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: Android Unit Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| - main | |
| paths: | |
| - "webtrit_callkeep_android/**" | |
| - ".github/workflows/android-unit-tests.yml" | |
| jobs: | |
| unit-tests: | |
| name: Robolectric unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "17" | |
| distribution: temurin | |
| - name: Write local.properties | |
| run: echo "flutter.sdk=$FLUTTER_ROOT" > webtrit_callkeep_android/android/local.properties | |
| - name: Run unit tests | |
| run: ./gradlew testDebugUnitTest | |
| working-directory: webtrit_callkeep_android/android | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-test-results | |
| path: webtrit_callkeep_android/android/build/reports/tests/testDebugUnitTest/ | |
| retention-days: 7 |