-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better local caching via burrunan/gradle-cache-action #1054
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -28,20 +28,14 @@ jobs: | |||
with: | |||
java-version: 11 | |||
|
|||
- name: Cache gradle dependencies | |||
- name: Test | |||
uses: burrunan/gradle-cache-action@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like gradle-caching-runner or the like will be a good name. Not surprising to see the best caching comes with having full visibility to Gradle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming is hard :)
Thanks for the suggestion.
I see JUnit team uses the following, and it can't be folded to a single command, so I'm exploring ways to allow multiple (Gradle? Shell?) commands to be executed (to avoid copy-paste the boring uses:...
)
run: |
./gradlew --version
./gradlew build
@@ -28,20 +28,14 @@ jobs: | |||
with: | |||
java-version: 11 | |||
|
|||
- name: Cache gradle dependencies | |||
- name: Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're here how about Test on ${{matrix.java}}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have in job name. Isn't it enough?
@@ -63,20 +57,14 @@ jobs: | |||
with: | |||
java-version: 11 | |||
|
|||
- name: Cache gradle dependencies | |||
- name: Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly how about Test latest deps
?
@@ -24,17 +24,11 @@ jobs: | |||
with: | |||
java-version: 11 | |||
|
|||
- name: Cache gradle dependencies | |||
- name: Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks @vlsi! |
No description provided.