Skip to content

Commit

Permalink
[CI] Skip samples during test target [skip ci]
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
onobc committed Feb 21, 2024
1 parent ec62bc7 commit 23595e9
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ jobs:
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
-PspringPulsarVersion="$VERSION" \
-PspringBootVersion="$BOOT_VERSION" \
-PsampleTests \
:runAllSampleTests
1 change: 1 addition & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
-PspringPulsarVersion="$VERSION" \
-PspringBootVersion="$BOOT_VERSION" \
-PsampleTests \
:runAllSampleTests
scan:
needs: [prerequisites]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
-PspringPulsarVersion="$VERSION" \
-PspringBootVersion="$BOOT_VERSION" \
-PsampleTests \
:runAllSampleTests
scan:
needs: [prerequisites]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ dependencies {
}

test {
onlyIf {
project.hasProperty("sampleTests")
}
useJUnitPlatform()
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ dependencies {
}

test {
onlyIf {
project.hasProperty("sampleTests")
}
useJUnitPlatform()
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
Expand Down
3 changes: 3 additions & 0 deletions spring-pulsar-sample-apps/sample-pulsar-binder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ dependencies {
}

test {
onlyIf {
project.hasProperty("sampleTests")
}
useJUnitPlatform()
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ dependencies {
}

test {
onlyIf {
project.hasProperty("sampleTests")
}
useJUnitPlatform()
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
Expand Down
3 changes: 3 additions & 0 deletions spring-pulsar-sample-apps/sample-pulsar-reader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ dependencies {
}

test {
onlyIf {
project.hasProperty("sampleTests")
}
useJUnitPlatform()
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
Expand Down
3 changes: 3 additions & 0 deletions spring-pulsar-sample-apps/sample-reactive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ dependencies {
}

test {
onlyIf {
project.hasProperty("sampleTests")
}
useJUnitPlatform()
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
Expand Down

0 comments on commit 23595e9

Please sign in to comment.