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
Conversation
Those are the enefits we can get from the action and our current usage: * Efficient cache * Summary report * Capture of build scan links
See summary |
- name: Setup Gradle Build Action | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true |
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?
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? 🤷🏽♂️
- name: Setup Gradle Build Action | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run Gradle Build | ||
run: ./gradlew build --scan --no-daemon -i -x 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.
We can also switch to using the gradle-build-action
for execution, but it probably changes nothing.
https://github.com/gradle/gradle-build-action#gradle-execution
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.
that's useful when testing with different gradle versions. In our case would not help that much given we use gradle wrapper
The summary report is a great feature and it makes the build scans very accessible 👍 |
Those are the benefits we can get from the action and our current usage: