2023-05-25 19:29:56 +08:00
|
|
|
name: Build Pull Request
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-03-28 02:41:54 +08:00
|
|
|
name: Build Pull Request
|
2024-05-13 19:08:15 +08:00
|
|
|
runs-on: ubuntu-latest
|
2023-05-25 19:29:56 +08:00
|
|
|
if: ${{ github.repository == 'spring-projects/spring-boot' }}
|
|
|
|
steps:
|
2024-05-13 19:08:15 +08:00
|
|
|
- name: Free Disk Space
|
|
|
|
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
|
|
|
|
with:
|
|
|
|
large-packages: false
|
|
|
|
docker-images: false
|
2024-03-28 03:36:32 +08:00
|
|
|
- name: Set Up JDK 17
|
2023-12-05 03:15:44 +08:00
|
|
|
uses: actions/setup-java@v4
|
2023-05-25 19:29:56 +08:00
|
|
|
with:
|
2023-05-25 19:32:13 +08:00
|
|
|
java-version: '17'
|
2023-05-25 19:29:56 +08:00
|
|
|
distribution: 'liberica'
|
2024-03-28 03:36:32 +08:00
|
|
|
- name: Check Out
|
2023-09-05 03:37:24 +08:00
|
|
|
uses: actions/checkout@v4
|
2024-03-28 02:41:54 +08:00
|
|
|
- name: Validate Gradle Wrapper
|
2024-06-18 03:14:06 +08:00
|
|
|
uses: gradle/actions/wrapper-validation@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
|
2024-03-28 03:36:32 +08:00
|
|
|
- name: Set Up Gradle
|
2024-06-18 03:14:06 +08:00
|
|
|
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
|
2023-05-25 19:29:56 +08:00
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
CI: 'true'
|
|
|
|
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
|
2023-07-06 19:11:08 +08:00
|
|
|
run: ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --no-parallel --continue build
|
2024-03-28 02:41:54 +08:00
|
|
|
- name: Print JVM Thread Dumps When Cancelled
|
2023-06-07 01:26:28 +08:00
|
|
|
uses: ./.github/actions/print-jvm-thread-dumps
|
|
|
|
if: cancelled()
|
2024-03-28 02:41:54 +08:00
|
|
|
- name: Upload Build Reports
|
2023-12-19 03:32:20 +08:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-07-25 20:11:37 +08:00
|
|
|
if: failure()
|
2023-07-11 18:18:51 +08:00
|
|
|
with:
|
|
|
|
name: build-reports
|
|
|
|
path: '**/build/reports/'
|