Skip to content

Commit 3667169

Browse files
committed
[CI] Add Spring Boot 3.3.0-SNAPSHOT to check-samples in ci-pr.yml
1 parent bbdba00 commit 3667169

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
outputs:
1717
runjobs: ${{ steps.continue.outputs.runjobs }}
1818
project_version: ${{ steps.continue.outputs.project_version }}
19+
boot_version: ${{ steps.continue.outputs.boot_version }}
1920
steps:
2021
- uses: actions/checkout@v3
2122
- id: continue
@@ -26,6 +27,8 @@ jobs:
2627
# Extract version from gradle.properties
2728
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
2829
echo "project_version=$version" >>$GITHUB_OUTPUT
30+
bootVersion=$(cat gradle/libs.versions.toml | grep "spring-boot = \"" | cut -d '"' -f2)
31+
echo "boot_version=$bootVersion" >>$GITHUB_OUTPUT
2932
build_and_verify:
3033
name: Build and Verify
3134
needs: [prerequisites]
@@ -76,6 +79,9 @@ jobs:
7679
retention-days: 3
7780
check_samples:
7881
needs: [prerequisites, build_and_verify]
82+
strategy:
83+
matrix:
84+
springBootVersion: [ "${{ needs.prerequisites.outputs.boot_version }}", '3.3.0-SNAPSHOT' ]
7985
runs-on: ubuntu-latest
8086
if: needs.prerequisites.outputs.runjobs
8187
steps:
@@ -85,12 +91,14 @@ jobs:
8591
env:
8692
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
8793
VERSION: ${{ needs.prerequisites.outputs.project_version }}
94+
BOOT_VERSION: ${{ matrix.springBootVersion }}
8895
run: |
8996
./gradlew publishMavenJavaPublicationToLocalRepository
9097
./gradlew \
9198
--init-script ./spring-pulsar-sample-apps/sample-apps-check-ci.gradle \
9299
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
93100
-PspringPulsarVersion="$VERSION" \
101+
-PspringBootVersion="$BOOT_VERSION" \
94102
:runAllSampleTests
95103
scan:
96104
needs: [prerequisites]

0 commit comments

Comments
 (0)