Skip to content

Commit

Permalink
Reduce compatibility tests duration
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Aug 27, 2024
1 parent f5897a7 commit e9d58aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 32 deletions.
34 changes: 2 additions & 32 deletions .github/workflows/run-tests-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,12 @@ jobs:
fail-fast: false
matrix:
os: [ 'ubuntu-latest' ]
target: [ 'jvmAll', 'js', 'native' ]
target: [ 'jvm', 'js', 'native' ]
include:
- os: 'macos-latest'
target: 'macos'
- os: 'macos-latest'
target: 'ios'
- os: 'macos-latest'
target: 'watchos'
- os: 'macos-latest'
target: 'tvos'
- os: 'windows-latest'
target: 'native'
- os: 'ubuntu-latest'
target: 'connectedAndroid'
android-api-level: 21
- os: 'ubuntu-latest'
target: 'connectedAndroid'
android-api-level: 27
- os: 'ubuntu-latest'
target: 'connectedAndroid'
android-api-level: 33
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-environment
Expand Down Expand Up @@ -81,27 +66,12 @@ jobs:
fail-fast: false
matrix:
os: [ 'ubuntu-latest' ]
target: [ 'jvmAll', 'js', 'native' ]
target: [ 'jvm', 'js', 'native' ]
include:
- os: 'macos-latest'
target: 'macos'
- os: 'macos-latest'
target: 'ios'
- os: 'macos-latest'
target: 'watchos'
- os: 'macos-latest'
target: 'tvos'
- os: 'windows-latest'
target: 'native'
- os: 'ubuntu-latest'
target: 'connectedAndroid'
android-api-level: 21
- os: 'ubuntu-latest'
target: 'connectedAndroid'
android-api-level: 27
- os: 'ubuntu-latest'
target: 'connectedAndroid'
android-api-level: 33
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ registerTestAggregationTask(
targetFilter = { it.platformType == KotlinPlatformType.jvm }
)

// test only on min and max JDK versions
registerTestAggregationTask(
name = "jvmProviderTest",
taskDependencies = {
tasks.withType<KotlinJvmTest>().matching {
it.javaLauncher.get().metadata.languageVersion.asInt() in setOf(8, 21)
}
},
targetFilter = { it.platformType == KotlinPlatformType.jvm }
)

registerTestAggregationTask(
name = "nativeProviderTest",
taskDependencies = { tasks.withType<KotlinNativeTest>().matching { it.enabled } },
Expand Down

0 comments on commit e9d58aa

Please sign in to comment.