From 3667169c11e3d0ce4e121d709cdb73fd14f9b4d5 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Mon, 15 Jan 2024 09:16:20 -0600 Subject: [PATCH] [CI] Add Spring Boot 3.3.0-SNAPSHOT to check-samples in ci-pr.yml --- .github/workflows/ci-pr.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index f6c6b6ce..eff21dc2 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -16,6 +16,7 @@ jobs: outputs: runjobs: ${{ steps.continue.outputs.runjobs }} project_version: ${{ steps.continue.outputs.project_version }} + boot_version: ${{ steps.continue.outputs.boot_version }} steps: - uses: actions/checkout@v3 - id: continue @@ -26,6 +27,8 @@ jobs: # Extract version from gradle.properties version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}') echo "project_version=$version" >>$GITHUB_OUTPUT + bootVersion=$(cat gradle/libs.versions.toml | grep "spring-boot = \"" | cut -d '"' -f2) + echo "boot_version=$bootVersion" >>$GITHUB_OUTPUT build_and_verify: name: Build and Verify needs: [prerequisites] @@ -76,6 +79,9 @@ jobs: retention-days: 3 check_samples: needs: [prerequisites, build_and_verify] + strategy: + matrix: + springBootVersion: [ "${{ needs.prerequisites.outputs.boot_version }}", '3.3.0-SNAPSHOT' ] runs-on: ubuntu-latest if: needs.prerequisites.outputs.runjobs steps: @@ -85,12 +91,14 @@ jobs: env: LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos VERSION: ${{ needs.prerequisites.outputs.project_version }} + BOOT_VERSION: ${{ matrix.springBootVersion }} run: | ./gradlew publishMavenJavaPublicationToLocalRepository ./gradlew \ --init-script ./spring-pulsar-sample-apps/sample-apps-check-ci.gradle \ -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \ -PspringPulsarVersion="$VERSION" \ + -PspringBootVersion="$BOOT_VERSION" \ :runAllSampleTests scan: needs: [prerequisites]