mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> See gh-38855
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
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 code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Validate Gradle wrapper
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Set up Gradle
|
|
uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2
|
|
|
|
- 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/'
|