[CI] Add Spring Boot 3.3.0-SNAPSHOT to check-samples in ci-pr.yml
This commit is contained in:
8
.github/workflows/ci-pr.yml
vendored
8
.github/workflows/ci-pr.yml
vendored
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user