You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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: Set up JDK 8
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: '8'
|
|
|
|
distribution: 'liberica'
|
|
|
|
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Validate Gradle wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
|
|
|
|
- name: Set up Gradle
|
|
|
|
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691
|
|
|
|
|
|
|
|
- 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@v3
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: build-reports
|
|
|
|
path: '**/build/reports/'
|