Skip to content

Commit

Permalink
Fix lint build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laimiux committed Jan 4, 2024
1 parent 50ce472 commit ca847c3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Run Formula Android Instrumentation Tests
run: ./gradlew :formula-android-tests:testRelease
- name: Run Formula Lint Tests
run: ./gradlew :formula-lint:test
run: ./gradlew :formula-lint:build
- name: Generate Jacoco Report
run: ./gradlew jacocoTestReportMerged
- name: Save Jacoco Report
Expand Down
14 changes: 14 additions & 0 deletions formula-lint/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import com.android.build.gradle.internal.lint.AndroidLintAnalysisTask
import com.android.build.gradle.internal.lint.LintModelWriterTask

plugins {
id("java-library")
id("kotlin")
Expand All @@ -19,3 +22,14 @@ dependencies {
testImplementation(libs.lint.tests)
testImplementation(libs.junit)
}

//tasks.withType(JacocoReport::class) {
//
//}

plugins.withId("jacoco") {
tasks.named("jacocoTestReport") {
dependsOn(tasks.withType(AndroidLintAnalysisTask::class.java))
dependsOn(tasks.withType(LintModelWriterTask::class.java))
}
}

0 comments on commit ca847c3

Please sign in to comment.