File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 steps :
1010 - name : Checkout current develop branch
1111 uses : actions/checkout@v3
12+
1213 - name : Setup JDK
1314 uses : actions/setup-java@v3
1415 with :
1516 distribution : ' temurin'
1617 java-version : 11
1718 cache : ' gradle'
19+
20+ - name : AVD cache
21+ uses : actions/cache@v3
22+ id : avd-cache
23+ with :
24+ path : |
25+ ~/.android/avd/*
26+ ~/.android/adb*
27+ key : avd-30
28+
29+ - name : create AVD and generate snapshot for caching
30+ if : steps.avd-cache.outputs.cache-hit != 'true'
31+ uses : reactivecircus/android-emulator-runner@v2
32+ with :
33+ api-level : 30
34+ target : google_apis
35+ arch : x86_64
36+ force-avd-creation : false
37+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
38+ disable-animations : false
39+ script : echo "Generated AVD snapshot for caching."
40+
1841 - name : Run unit/instrumentation tests and coverage generation
1942 uses : reactivecircus/android-emulator-runner@v2
2043 with :
2144 api-level : 30
2245 target : google_apis
2346 arch : x86_64
47+ force-avd-creation : false
2448 emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
2549 disable-animations : true
2650 script : ./gradlew -Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.FlakyTest,androidx.test.filters.LargeTest jacocoTestReport --stacktrace
51+
2752 - name : SonarCloud static code and coverage analysis
2853 env :
2954 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3055 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
31- run : ./gradlew sonarqube -Dsonar.login="$SONAR_TOKEN"
56+ run : ./gradlew sonarqube -Dsonar.login="$SONAR_TOKEN"
You can’t perform that action at this time.
0 commit comments