Skip to content

Commit 267c650

Browse files
committed
Verify snapshots once they have been deployed
Closes gh-40119
1 parent ff66036 commit 267c650

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,54 @@ 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+
- name: Set up Java
82+
uses: actions/setup-java@v4
83+
with:
84+
distribution: 'liberica'
85+
java-version: 17
86+
- name: Set up Gradle
87+
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
88+
with:
89+
cache-read-only: false
90+
- name: Configure Gradle properties
91+
shell: bash
92+
run: |
93+
mkdir -p $HOME/.gradle
94+
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties
95+
- name: Run release verification tests
96+
env:
97+
RVT_VERSION: ${{ needs.build-and-deploy-snapshot.outputs.version }}
98+
RVT_RELEASE_TYPE: oss
99+
run: ./gradlew spring-boot-release-verification-tests:test
100+
- name: Upload build reports on failure
101+
uses: actions/upload-artifact@v4
102+
if: failure()
103+
with:
104+
name: build-reports
105+
path: '**/build/reports/'
106+
- name: Send notification
107+
uses: ./.github/actions/send-notification
108+
if: always()
109+
with:
110+
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
111+
status: ${{ job.status }}
112+
run-name: ${{ format('{0} | Verification | {1}', github.ref_name, needs.build-and-deploy-snapshot.outputs.version) }}

0 commit comments

Comments
 (0)