Bump gradle/actions from 4.0.1 to 4.2.1 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1 | |
- name: Set Up Gradle | |
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.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/' |