Skip to content

Commit d40c2bc

Browse files
committed
Merge branch '3.1.x' into 3.2.x
Closes gh-40120
2 parents 957facf + 14fef8c commit d40c2bc

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,60 @@ jobs:
5959
status: ${{ job.status }}
6060
build-scan-url: ${{ steps.build.outputs.build-scan-url }}
6161
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}
62+
- name: Read version from gradle.properties
63+
id: read-version
64+
shell: bash
65+
run: |
66+
version=$(sed -n 's/version=\(.*\)/\1/p' gradle.properties)
67+
echo "Version is $version"
68+
echo "version=$version" >> $GITHUB_OUTPUT
69+
outputs:
70+
version: ${{ steps.read-version.outputs.version }}
71+
run-verification-tests:
72+
name: Verify ${{ needs.build-and-deploy-snapshot.outputs.version }}
73+
runs-on: ubuntu-latest
74+
needs: build-and-deploy-snapshot
75+
steps:
76+
- name: Check out release verification tests
77+
uses: actions/checkout@v4
78+
with:
79+
repository: spring-projects/spring-boot-release-verification
80+
ref: 'main'
81+
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
82+
- name: Check out send notification action
83+
uses: actions/checkout@v4
84+
with:
85+
path: spring-boot
86+
sparse-checkout: .github/actions/send-notification
87+
- name: Set up Java
88+
uses: actions/setup-java@v4
89+
with:
90+
distribution: 'liberica'
91+
java-version: 17
92+
- name: Set up Gradle
93+
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
94+
with:
95+
cache-read-only: false
96+
- name: Configure Gradle properties
97+
shell: bash
98+
run: |
99+
mkdir -p $HOME/.gradle
100+
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties
101+
- name: Run release verification tests
102+
env:
103+
RVT_VERSION: ${{ needs.build-and-deploy-snapshot.outputs.version }}
104+
RVT_RELEASE_TYPE: oss
105+
run: ./gradlew spring-boot-release-verification-tests:test
106+
- name: Upload build reports on failure
107+
uses: actions/upload-artifact@v4
108+
if: failure()
109+
with:
110+
name: build-reports
111+
path: '**/build/reports/'
112+
- name: Send notification
113+
uses: ./spring-boot/.github/actions/send-notification
114+
if: always()
115+
with:
116+
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
117+
status: ${{ job.status }}
118+
run-name: ${{ format('{0} | Verification | {1}', github.ref_name, needs.build-and-deploy-snapshot.outputs.version) }}

0 commit comments

Comments
 (0)