diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9809c9f..e25b915 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,7 +37,7 @@ jobs: run: chmod +x gradlew - name: Run common tests and lint - run: ./gradlew clean common:checkCommon --parallel --stacktrace -Pskip_gitversion --info + run: ./gradlew clean shared:checkCommon --parallel --stacktrace -Pskip_gitversion --info - name: Run Android lint run: ./gradlew android:ktlintCheck --stacktrace -Pskip_gitversion diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 825e51d..769f961 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -186,3 +186,10 @@ tasks.withType>().all { tasks["runKtlintFormatOverCommonMainSourceSet"].dependsOn("kspCommonMainKotlinMetadata") tasks["runKtlintCheckOverCommonMainSourceSet"].dependsOn("kspCommonMainKotlinMetadata") + +val checkCommon: Task by tasks.creating { + group = "verification" + description = "Like check, but only with android target for common unit tests" + dependsOn("ktlintCheck") + dependsOn("testReleaseUnitTest") +}