From 129c3f649eff40bd4350fceff7418ac4f9cf4b2b Mon Sep 17 00:00:00 2001 From: Laimonas Turauskas Date: Thu, 4 Jan 2024 10:05:50 -0500 Subject: [PATCH] Fix lint build. --- .github/workflows/build-workflow.yml | 2 +- formula-lint/build.gradle.kts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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)) + } +}