Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit9625 authored Jan 13, 2024
1 parent c13cc3f commit e03651c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ jobs:
disable-animations: true
script: echo "Generated AVD snapshot for caching."

- name: Print environment
run: |
echo "System Environment:"
printenv
echo "Gradle Properties:"
./gradlew properties

- name: Print dependencies
run: ./gradlew dependencies


- name: Run Instrumentation tests
if: github.event_name != 'pull_request'
uses: reactivecircus/android-emulator-runner@v2
Expand All @@ -69,14 +81,15 @@ jobs:
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
adb emu geo fix 37.422131 -122.084801
./gradlew connectedBetaDebugAndroidTest --stacktrace
cat app/build/reports/androidTests/connected/flavors/BetaDebug/index.html
- name: Run Unit tests with unified coverage
if: github.event_name != 'pull_request'
run: ./gradlew -Pcoverage testBetaDebugUnitTestUnifiedCoverage --stacktrace
run: ./gradlew -Pcoverage testBetaDebugUnitTestUnifiedCoverage --stacktrace --info

- name: Run Unit tests without unified coverage
if: github.event_name == 'pull_request'
run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage --stacktrace
run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage --stacktrace --info

- name: Upload Test Report to Codecov
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit e03651c

Please sign in to comment.