File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Android CI
2+
3+ on : [ push, pull_request ]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v4
11+ - name : Set up JDK 21
12+ uses : actions/setup-java@v4
13+ with :
14+ java-version : ' 21'
15+ distribution : ' temurin'
16+ cache : gradle
17+
18+ - name : Grant execute permission for gradlew
19+ run : chmod +x gradlew
20+
21+ - name : Build debug APK with Gradle
22+ run : ./gradlew assembleDebug
23+
24+ - name : Run tests
25+ run : ./gradlew testDebugUnitTest
26+
27+ - name : Upload debug APK artifact
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : wikireader-debug
31+ path : ./app/build/outputs/apk/debug/app-debug.apk
Original file line number Diff line number Diff line change 1+ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
2+ import org.gradle.api.tasks.testing.logging.TestLogEvent
13import org.jetbrains.kotlin.gradle.dsl.JvmTarget
24
35plugins {
@@ -66,6 +68,14 @@ android {
6668 }
6769}
6870
71+ tasks.withType(Test ::class ) {
72+ testLogging {
73+ exceptionFormat = TestExceptionFormat .FULL
74+ events = setOf (TestLogEvent .PASSED , TestLogEvent .SKIPPED , TestLogEvent .FAILED )
75+ showStandardStreams = true
76+ }
77+ }
78+
6979dependencies {
7080 implementation(platform(libs.androidx.compose.bom))
7181 implementation(libs.androidx.activity.compose)
You can’t perform that action at this time.
0 commit comments