Skip to content

Commit f763751

Browse files
committed
Merge branch '3.1.x' into 3.2.x
Closes gh-40351
2 parents 74fff36 + 2c6006e commit f763751

File tree

2 files changed

+61
-47
lines changed

2 files changed

+61
-47
lines changed

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

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -68,51 +68,10 @@ jobs:
6868
echo "version=$version" >> $GITHUB_OUTPUT
6969
outputs:
7070
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
71+
verify:
72+
name: Verify
7473
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@1168cd3d07c1876a65e1724114de42ccbdfa7b78
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) }}
74+
uses: .github/workflows/verify.yml
75+
secrets: inherit
76+
with:
77+
version: ${{ needs.build-and-deploy-snapshot.outputs.version }}

.github/workflows/verify.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Verify
2+
on:
3+
workflow-call:
4+
inputs:
5+
version:
6+
required: true
7+
type: string
8+
jobs:
9+
verify:
10+
name: Verify
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check Out Release Verification Tests
14+
uses: actions/checkout@v4
15+
with:
16+
repository: spring-projects/spring-boot-release-verification
17+
ref: 'main'
18+
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
19+
- name: Check Out Send Notification Action
20+
uses: actions/checkout@v4
21+
with:
22+
path: spring-boot
23+
sparse-checkout: .github/actions/send-notification
24+
- name: Set Up Java
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: 'liberica'
28+
java-version: 17
29+
- name: Set Up Gradle
30+
uses: gradle/actions/setup-gradle@1168cd3d07c1876a65e1724114de42ccbdfa7b78 #v3.2.1
31+
with:
32+
cache-read-only: false
33+
- name: Configure Gradle Properties
34+
shell: bash
35+
run: |
36+
mkdir -p $HOME/.gradle
37+
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties
38+
- name: Run Release Verification Tests
39+
env:
40+
RVT_VERSION: ${{ inputs.version }}
41+
RVT_RELEASE_TYPE: oss
42+
run: ./gradlew spring-boot-release-verification-tests:test
43+
- name: Upload Build Reports on Failure
44+
uses: actions/upload-artifact@v4
45+
if: failure()
46+
with:
47+
name: build-reports
48+
path: '**/build/reports/'
49+
- name: Send Notification
50+
uses: ./spring-boot/.github/actions/send-notification
51+
if: always()
52+
with:
53+
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
54+
status: ${{ job.status }}
55+
run-name: ${{ format('{0} | Verification | {1}', github.ref_name, inputs.version) }}

0 commit comments

Comments
 (0)