2023-05-25 19:29:56 +08:00
|
|
|
name: Build Pull Request
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build pull request
|
2023-09-26 07:42:18 +08:00
|
|
|
runs-on: ubuntu22-8-32
|
2023-05-25 19:29:56 +08:00
|
|
|
if: ${{ github.repository == 'spring-projects/spring-boot' }}
|
|
|
|
steps:
|
2023-05-25 19:32:13 +08:00
|
|
|
- name: Set up JDK 17
|
2023-05-25 19:29:56 +08:00
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
2023-05-25 19:32:13 +08:00
|
|
|
java-version: '17'
|
2023-05-25 19:29:56 +08:00
|
|
|
distribution: 'liberica'
|
|
|
|
|
2023-05-25 19:54:37 +08:00
|
|
|
- name: Check out code
|
2023-09-05 03:37:24 +08:00
|
|
|
uses: actions/checkout@v4
|
2023-05-25 19:54:37 +08:00
|
|
|
|
|
|
|
- name: Validate Gradle wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
2023-05-25 19:29:56 +08:00
|
|
|
- name: Set up Gradle
|
2023-10-03 03:34:13 +08:00
|
|
|
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a
|
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
|
2023-06-07 01:26:28 +08:00
|
|
|
|
|
|
|
- name: Print JVM thread dumps when cancelled
|
|
|
|
uses: ./.github/actions/print-jvm-thread-dumps
|
|
|
|
if: cancelled()
|
2023-07-11 18:18:51 +08:00
|
|
|
|
|
|
|
- name: Upload build reports
|
|
|
|
uses: actions/upload-artifact@v3
|
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/'
|