A composite action that combines the following steps:
- Set up a JDK with
actions/setup-java@v4
- Set up a
user.name
system property withspring-builds+github
- Validate the Gradle wrapper using
gradle/actions/wrapper-validation@v3
- Set up Gradle using
gradle/actions/setup-gradle@v3
Accepts the following inputs:
java-version
(Optional, defaults to'17'
)distribution
(Optional, defaults to'temurin'
)
- name: Spring Gradle Build Action
uses: spring-io/spring-gradle-build-action@v2
with:
java-version: '17'
distribution: 'temurin'
- uses: actions/checkout@v3
- uses: spring-io/spring-gradle-build-action@v2
- name: Run tests
run: ./gradlew test