-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Run precommit before gradle check #5066
Run precommit before gradle check #5066
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
.github/workflows/gradle-check.yml
Outdated
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 11 | ||
distribution: adopt |
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.
distribution: temurin
please
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 copy/pasted precommit from main which has adopt
distribution. Updated it.
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #5066 +/- ##
============================================
- Coverage 70.84% 70.83% -0.01%
- Complexity 57867 58076 +209
============================================
Files 4692 4704 +12
Lines 276650 277309 +659
Branches 40155 40170 +15
============================================
+ Hits 196002 196444 +442
- Misses 64500 64765 +265
+ Partials 16148 16100 -48
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
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.
Change the JDK distribution to keep it consistent.
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
f29ae69
to
0e309b5
Compare
Github Action worked fine on my fork. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Hm .. it seems like the Github actions are being taken from |
This PR has caused a lot of issue and is not even checking out the correct commit to run spotless and gradle precommit: |
This reverts commit 2139e80. Signed-off-by: Marc Handalian <handalm@amazon.com>
We were under the impression it's because of the branch protection rule. What are the correct commits to run spotless and precommit @peterzhuamazon ? |
Signed-off-by: Owais Kazi owaiskazi19@gmail.com
Description
This PR adds dependency of precommit to run successfully before running gradle check. Thus saving time and collecting errors before waiting for the entire gradle check suite to run.
Dependency chart: spotless -> precommit -> gradle check
For more information: #5027 and #4679
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.