mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
name: Build Pull Request
|
|
on: pull_request
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Pull Request
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'spring-projects/spring-boot' }}
|
|
steps:
|
|
- name: Free Disk Space
|
|
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
|
|
with:
|
|
large-packages: false
|
|
docker-images: false
|
|
- name: Set Up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'liberica'
|
|
- name: Check Out
|
|
uses: actions/checkout@v4
|
|
- name: Validate Gradle Wrapper
|
|
uses: gradle/actions/wrapper-validation@31ae3562f68c96d481c31bc1a8a55cc1be162f83 # v3.4.1
|
|
- name: Set Up Gradle
|
|
uses: gradle/actions/setup-gradle@31ae3562f68c96d481c31bc1a8a55cc1be162f83 # v3.4.1
|
|
- name: Build
|
|
env:
|
|
CI: 'true'
|
|
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
|
|
run: ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --no-parallel --continue build
|
|
- name: Print JVM Thread Dumps When Cancelled
|
|
uses: ./.github/actions/print-jvm-thread-dumps
|
|
if: cancelled()
|
|
- name: Upload Build Reports
|
|
uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: build-reports
|
|
path: '**/build/reports/'
|