Skip to content

Commit 23595e9

Browse files
committed
[CI] Skip samples during test target [skip ci]
This commit sets the sample tests to not run as part of the regular 'test' task. We only want the sample tests to run during the "check-samples" step.
1 parent ec62bc7 commit 23595e9

File tree

9 files changed

+21
-0
lines changed

9 files changed

+21
-0
lines changed

.github/workflows/check-samples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ jobs:
5757
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
5858
-PspringPulsarVersion="$VERSION" \
5959
-PspringBootVersion="$BOOT_VERSION" \
60+
-PsampleTests \
6061
:runAllSampleTests

.github/workflows/ci-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
9999
-PspringPulsarVersion="$VERSION" \
100100
-PspringBootVersion="$BOOT_VERSION" \
101+
-PsampleTests \
101102
:runAllSampleTests
102103
scan:
103104
needs: [prerequisites]

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
9090
-PspringPulsarVersion="$VERSION" \
9191
-PspringBootVersion="$BOOT_VERSION" \
92+
-PsampleTests \
9293
:runAllSampleTests
9394
scan:
9495
needs: [prerequisites]

spring-pulsar-sample-apps/sample-failover-custom-router/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ dependencies {
3636
}
3737

3838
test {
39+
onlyIf {
40+
project.hasProperty("sampleTests")
41+
}
3942
useJUnitPlatform()
4043
testLogging.showStandardStreams = true
4144
outputs.upToDateWhen { false }

spring-pulsar-sample-apps/sample-imperative-produce-consume/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ dependencies {
3030
}
3131

3232
test {
33+
onlyIf {
34+
project.hasProperty("sampleTests")
35+
}
3336
useJUnitPlatform()
3437
testLogging.showStandardStreams = true
3538
outputs.upToDateWhen { false }

spring-pulsar-sample-apps/sample-pulsar-binder/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ dependencies {
3434
}
3535

3636
test {
37+
onlyIf {
38+
project.hasProperty("sampleTests")
39+
}
3740
useJUnitPlatform()
3841
testLogging.showStandardStreams = true
3942
outputs.upToDateWhen { false }

spring-pulsar-sample-apps/sample-pulsar-functions/sample-signup-app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ dependencies {
3333
}
3434

3535
test {
36+
onlyIf {
37+
project.hasProperty("sampleTests")
38+
}
3639
useJUnitPlatform()
3740
testLogging.showStandardStreams = true
3841
outputs.upToDateWhen { false }

spring-pulsar-sample-apps/sample-pulsar-reader/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ dependencies {
3131
}
3232

3333
test {
34+
onlyIf {
35+
project.hasProperty("sampleTests")
36+
}
3437
useJUnitPlatform()
3538
testLogging.showStandardStreams = true
3639
outputs.upToDateWhen { false }

spring-pulsar-sample-apps/sample-reactive/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ dependencies {
3232
}
3333

3434
test {
35+
onlyIf {
36+
project.hasProperty("sampleTests")
37+
}
3538
useJUnitPlatform()
3639
testLogging.showStandardStreams = true
3740
outputs.upToDateWhen { false }

0 commit comments

Comments
 (0)