File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 - uses : android-actions/setup-android@v4
2727 - name : Install SDK packages
2828 run : sdkmanager "platforms;android-35" "build-tools;36.0.0"
29- - name : Test and assemble
30- run : ./gradlew :cobs:testDebugUnitTest :cobs:assembleRelease --console=plain
29+ - name : Test, lint, and assemble
30+ run : >-
31+ ./gradlew :cobs:testDebugUnitTest :cobs:lint :cobs:assembleRelease
32+ --console=plain
3133 - name : Upload AAR artifact
3234 uses : actions/upload-artifact@v7
3335 with :
Original file line number Diff line number Diff line change @@ -33,6 +33,16 @@ android {
3333 }
3434 }
3535
36+ lint {
37+ // Fail the build on any real lint issue.
38+ abortOnError = true
39+ warningsAsErrors = true
40+ // GradleDependency only nags that a newer compileSdk/dependency exists;
41+ // this pure-Kotlin library uses no Android APIs, so the compileSdk level
42+ // is immaterial and version bumps are made deliberately.
43+ disable + = " GradleDependency"
44+ }
45+
3646 publishing {
3747 singleVariant(" release" ) {
3848 withSourcesJar()
@@ -43,6 +53,7 @@ android {
4353kotlin {
4454 compilerOptions {
4555 jvmTarget = JvmTarget .JVM_17
56+ allWarningsAsErrors = true
4657 }
4758}
4859
You can’t perform that action at this time.
0 commit comments