You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
name: Build Pull Request |
|
on: pull_request |
|
|
|
permissions: |
|
contents: read |
|
|
|
jobs: |
|
build: |
|
name: Build Pull Request |
|
runs-on: ubuntu22-8-32 |
|
if: ${{ github.repository == 'spring-projects/spring-boot' }} |
|
steps: |
|
- 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@750cdda3edd6d51b7fdfc069d2e2818cf3c44f4c #v3.3.1 |
|
- name: Set Up Gradle |
|
uses: gradle/actions/setup-gradle@750cdda3edd6d51b7fdfc069d2e2818cf3c44f4c # v3.3.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/'
|
|
|