diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index ce27b42e..bcc135d4 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -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 diff --git a/formula-lint/build.gradle.kts b/formula-lint/build.gradle.kts index f3c0fb15..7a27eb1d 100644 --- a/formula-lint/build.gradle.kts +++ b/formula-lint/build.gradle.kts @@ -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") @@ -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)) + } +}