2024-04-15 20:32:07 +08:00
|
|
|
name: Verify
|
|
|
|
on:
|
2024-04-15 21:11:55 +08:00
|
|
|
workflow_call:
|
2024-04-15 20:32:07 +08:00
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-04-16 01:02:56 +08:00
|
|
|
staging:
|
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
type: boolean
|
2024-04-18 16:54:47 +08:00
|
|
|
secrets:
|
|
|
|
repository-username:
|
|
|
|
required: false
|
|
|
|
repository-password:
|
|
|
|
required: false
|
2024-04-18 19:06:31 +08:00
|
|
|
google-chat-webhook-url:
|
|
|
|
required: true
|
|
|
|
token:
|
|
|
|
required: true
|
2024-04-15 20:32:07 +08:00
|
|
|
jobs:
|
|
|
|
verify:
|
|
|
|
name: Verify
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-04-18 19:06:31 +08:00
|
|
|
- name: Check Out Release Verification Tests
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: spring-projects/spring-boot-release-verification
|
2024-04-25 19:23:46 +08:00
|
|
|
ref: 'v0.0.3'
|
2024-04-18 19:06:31 +08:00
|
|
|
token: ${{ secrets.token }}
|
2024-04-18 19:26:00 +08:00
|
|
|
- name: Check Out Send Notification Action
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
path: spring-boot
|
|
|
|
sparse-checkout: .github/actions/send-notification
|
2024-04-15 20:32:07 +08:00
|
|
|
- name: Set Up Java
|
|
|
|
uses: actions/setup-java@v4
|
|
|
|
with:
|
|
|
|
distribution: 'liberica'
|
|
|
|
java-version: 17
|
2024-04-16 20:10:26 +08:00
|
|
|
- name: Set Up Homebrew
|
|
|
|
uses: Homebrew/actions/setup-homebrew@7657c9512f50e1c35b640971116425935bab3eea
|
2024-04-15 20:32:07 +08:00
|
|
|
- name: Set Up Gradle
|
2024-06-18 03:14:06 +08:00
|
|
|
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
|
2024-04-15 20:32:07 +08:00
|
|
|
with:
|
|
|
|
cache-read-only: false
|
|
|
|
- name: Configure Gradle Properties
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir -p $HOME/.gradle
|
|
|
|
echo 'org.gradle.daemon=false' >> $HOME/.gradle/gradle.properties
|
|
|
|
- name: Run Release Verification Tests
|
|
|
|
env:
|
|
|
|
RVT_VERSION: ${{ inputs.version }}
|
|
|
|
RVT_RELEASE_TYPE: oss
|
2024-04-16 01:02:56 +08:00
|
|
|
RVT_STAGING: ${{ inputs.staging }}
|
2024-04-18 16:54:47 +08:00
|
|
|
RVT_OSS_REPOSITORY_USERNAME: ${{ secrets.repository-username }}
|
|
|
|
RVT_OSS_REPOSITORY_PASSWORD: ${{ secrets.repository-password }}
|
2024-04-15 20:32:07 +08:00
|
|
|
run: ./gradlew spring-boot-release-verification-tests:test
|
|
|
|
- name: Upload Build Reports on Failure
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: build-reports
|
|
|
|
path: '**/build/reports/'
|
|
|
|
- name: Send Notification
|
|
|
|
uses: ./spring-boot/.github/actions/send-notification
|
|
|
|
if: always()
|
|
|
|
with:
|
2024-04-18 19:06:31 +08:00
|
|
|
webhook-url: ${{ secrets.google-chat-webhook-url }}
|
2024-04-15 20:32:07 +08:00
|
|
|
status: ${{ job.status }}
|
|
|
|
run-name: ${{ format('{0} | Verification | {1}', github.ref_name, inputs.version) }}
|