Skip to content

Commit

Permalink
bulk-cdk: gradle and github workflow improvements (#47687)
Browse files Browse the repository at this point in the history
  • Loading branch information
postamar authored Oct 28, 2024
1 parent 3a6055d commit 0dc4efe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/publish-bulk-cdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ jobs:
gradle-distribution-sha-256-sum-warning: false
arguments: --scan :airbyte-cdk:bulk:bulkCdkBuild

- name: Integration test Bulk CDK
uses: burrunan/gradle-cache-action@v1
env:
CI: true
with:
read-only: true
job-id: bulk-cdk-publish
concurrent: true
gradle-distribution-sha-256-sum-warning: false
arguments: --scan :airbyte-cdk:bulk:bulkCdkIntegrationTest

- name: Publish Poms and Jars to CloudRepo
uses: burrunan/gradle-cache-action@v1
env:
Expand Down
4 changes: 0 additions & 4 deletions airbyte-cdk/bulk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ allprojects {
}
}

tasks.register('bulkCdkIntegrationTest').configure {
dependsOn allprojects.collect {it.tasks.matching { it.name == 'integrationTest' }}
}

if (buildNumberFile.exists()) {
tasks.register('bulkCdkBuild').configure {
dependsOn allprojects.collect {it.tasks.named('build')}
Expand Down
9 changes: 6 additions & 3 deletions airbyte-cdk/bulk/core/load/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
testFixturesImplementation "uk.org.webcompere:system-stubs-jupiter:2.1.7"
}

task integrationTest(type: Test) {
def integrationTestTask = tasks.register('integrationTest', Test) {
description = 'Runs the integration tests.'
group = 'verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
Expand All @@ -37,9 +37,12 @@ task integrationTest(type: Test) {
maxParallelForks = project.test.maxParallelForks
maxHeapSize = project.test.maxHeapSize
}
// These tests are lightweight enough to run on every PR.
tasks.named('check').configure {
dependsOn integrationTest
}

configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly
}
// These tests are lightweight enough to run on every PR.
rootProject.check.dependsOn(integrationTest)

0 comments on commit 0dc4efe

Please sign in to comment.