Skip to content

Commit

Permalink
Merge pull request #8 from ding1dingx/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
syxc authored Aug 25, 2024
2 parents 4b52011 + 21ad68e commit bc7359a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -36,8 +36,10 @@ jobs:
run: ./gradlew test

- name: Upload test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: "**/build/test-results/test"
path: |
**/build/test-results
**/build/reports/tests
7 changes: 7 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ android {
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

vectorDrawables {
useSupportLibrary = true
}
}

testOptions {
unitTests {
isIncludeAndroidResources = true
}
}

buildTypes {
release {
isDebuggable = false
Expand Down
6 changes: 6 additions & 0 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ android {
consumerProguardFiles("consumer-rules.pro")
}

testOptions {
unitTests {
isIncludeAndroidResources = true
}
}

buildTypes {
release {
isMinifyEnabled = false
Expand Down

0 comments on commit bc7359a

Please sign in to comment.