Skip to content

Commit

Permalink
Add checkCommon
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierPineau committed Nov 7, 2023
1 parent 803ff3b commit 204cded
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,10 @@ tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().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")
}

0 comments on commit 204cded

Please sign in to comment.