mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 19:57:04 +05:30
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
name: 'Setup Gradle'
|
|
description: 'Checks out the repository and sets up Java and Gradle'
|
|
inputs:
|
|
token:
|
|
description: 'token input for actions/checkout'
|
|
required: false
|
|
default: ${{ github.token }}
|
|
fetch-depth:
|
|
description: 'fetch-depth input for actions/checkout'
|
|
required: false
|
|
default: 1
|
|
cache-read-only:
|
|
description: 'cache-read-only input for gradle/actions/setup-gradle'
|
|
required: false
|
|
default: ${{ github.event.repository != null && github.ref_name != github.event.repository.default_branch }}
|
|
dependency-graph:
|
|
description: 'dependency-graph input for gradle/actions/setup-gradle'
|
|
required: false
|
|
default: 'disabled'
|
|
persist-credentials:
|
|
description: 'Control the actions/checkout persist-credentials setting'
|
|
required: false
|
|
default: false
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: ${{ inputs.fetch-depth }}
|
|
token: ${{ inputs.token }}
|
|
lfs: true
|
|
persist-credentials: ${{ inputs.persist-credentials }}
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
|
|
with:
|
|
distribution: temurin
|
|
java-version: 23
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@94baf225fe0a508e581a564467443d0e2379123b # v4
|
|
with:
|
|
add-job-summary: always
|
|
cache-read-only: ${{ inputs.cache-read-only }}
|
|
dependency-graph: ${{ inputs.dependency-graph }}
|
|
validate-wrappers: true
|