-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write build and test cache for all branches (#182)
- Loading branch information
1 parent
71666f5
commit 5d84083
Showing
27 changed files
with
298 additions
and
172 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,14 @@ inputs: | |
description: "Whether Gradle caching is enabled or not. (Default is true)" | ||
required: false | ||
default: "true" | ||
gradle-cache-read-only: | ||
description: "Whether Gradle caching should be read-only. By default this value is 'false' for workflows on the GitHub default branch and 'true' for workflows on other branches." | ||
required: false | ||
default: ${{ github.event.repository != null && github.ref_name != github.event.repository.default_branch }} | ||
gradle-refresh-dependencies: | ||
description: "Whether Gradle should refresh dependencies. (Default is false)" | ||
required: false | ||
default: "false" | ||
working-directory: | ||
description: "Working directory of your Gradle artifacts. (Default is .)" | ||
required: false | ||
|
@@ -33,15 +41,16 @@ runs: | |
uses: bakdata/ci-templates/actions/[email protected] | ||
|
||
- name: Set up Gradle with version ${{ inputs.gradle-version }} | ||
uses: bakdata/ci-templates/actions/java-gradle-setup@v1.16.0 | ||
uses: bakdata/ci-templates/actions/java-gradle-setup@1.42.0 | ||
with: | ||
java-distribution: ${{ inputs.java-distribution }} | ||
java-version: ${{ inputs.java-version }} | ||
gradle-version: ${{ inputs.gradle-version }} | ||
gradle-cache: ${{ inputs.gradle-cache }} | ||
gradle-cache-read-only: ${{ inputs.gradle-cache-read-only }} | ||
|
||
- name: Compile | ||
run: ./gradlew --info --stacktrace build -x test | ||
run: ./gradlew --info --stacktrace build -x test ${{ inputs.gradle-refresh-dependencies && '--refresh-dependencies' || '' }} | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
|
Oops, something went wrong.