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
Use gradle/gradle-build-action
#6121
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ jobs: | |
- name: Clear existing docker image cache | ||
run: docker image prune -af | ||
|
||
- name: Setup Gradle Build Action | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run Gradle Build | ||
run: ./gradlew build --scan --no-daemon -i -x test | ||
|
||
Comment on lines
+26
to
31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can also switch to using the https://github.com/gradle/gradle-build-action#gradle-execution There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's useful when testing with different gradle versions. In our case would not help that much given we use gradle wrapper |
||
|
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.
I had to look up the effect of it because I think the name is confusing but it looks like a good idea. I wonder why it is not a default?
https://github.com/gradle/gradle-build-action#removing-unused-files-from-gradle-user-home-before-saving-to-cache
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.
it is experimental but what can go wrong? 🤷🏽♂️