Skip to content

Commit 98059d7

Browse files
committed
[CI] Add Spring Boot 3.3.0-SNAPSHOT to check-samples in ci.yml
1 parent a0a05cd commit 98059d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
outputs:
3030
runjobs: ${{ steps.continue.outputs.runjobs }}
3131
project_version: ${{ steps.continue.outputs.project_version }}
32+
boot_version: ${{ steps.continue.outputs.boot_version }}
3233
steps:
3334
- uses: actions/checkout@v3
3435
- id: continue
@@ -39,6 +40,8 @@ jobs:
3940
# Extract version from gradle.properties
4041
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
4142
echo "project_version=$version" >>$GITHUB_OUTPUT
43+
bootVersion=$(cat gradle/libs.versions.toml | grep "spring-boot = \"" | cut -d '"' -f2)
44+
echo "boot_version=$bootVersion" >>$GITHUB_OUTPUT
4245
build_jdk_17:
4346
name: Build (JDK 17)
4447
needs: [prerequisites]
@@ -65,6 +68,9 @@ jobs:
6568
check_samples:
6669
name: Check Sample Apps
6770
needs: [prerequisites]
71+
strategy:
72+
matrix:
73+
springBootVersion: [ "${{ needs.prerequisites.outputs.boot_version }}", '3.3.0-SNAPSHOT' ]
6874
runs-on: ubuntu-latest
6975
if: needs.prerequisites.outputs.runjobs
7076
steps:
@@ -74,6 +80,7 @@ jobs:
7480
env:
7581
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
7682
VERSION: ${{ needs.prerequisites.outputs.project_version }}
83+
BOOT_VERSION: ${{ matrix.springBootVersion }}
7784
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
7885
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }}
7986
run: |
@@ -82,6 +89,7 @@ jobs:
8289
--init-script ./spring-pulsar-sample-apps/sample-apps-check-ci.gradle \
8390
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
8491
-PspringPulsarVersion="$VERSION" \
92+
-PspringBootVersion="$BOOT_VERSION" \
8593
:runAllSampleTests
8694
scan:
8795
needs: [prerequisites]

0 commit comments

Comments
 (0)