Skip to content
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

ci: use Eclipse Temurin #1617

Merged
merged 1 commit into from
Feb 25, 2023
Merged

ci: use Eclipse Temurin #1617

merged 1 commit into from
Feb 25, 2023

Conversation

yeikel
Copy link
Contributor

@yeikel yeikel commented Feb 21, 2023

Shared runners have Temurin pre-installed. That helps to speed up build as the JDK download is no longer needed

For example, rather than :

Downloading Java 17.0.6+10 (Adopt-Hotspot) from https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.6%2B10/OpenJDK17U-jdk_x64_linux_hotspot_17.0.6_10.tar.gz ...
Extracting Java archive...
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/4888a6ec-1ae0-4fb7-9bcd-181c630a2b3c -f /home/runner/work/_temp/855c391a-da2b-4556-9b9c-665a6d0677a6

It will be:

Installed distributions
Resolved Java 17.0.6+10 from tool-cache
Setting Java 17.0.6+10 as the default
Creating toolchains.xml for JDK version 17 from temurin
Writing to /home/runner/.m2/toolchains.xml

See https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#hosted-tool-cache

Description

Before submitting a PR:

  • Changes must not break binary backwards compatibility. If you are unclear on how to make the change you think is needed while maintaining backward compatibility, CONTRIBUTING.md for details.
  • Add JavaDocs and other comments as appropriate. Consider including links in comments to relevant documentation on https://docs.github.com/en/rest .
  • Add tests that cover any added or changed code. This generally requires capturing snapshot test data. See CONTRIBUTING.md for details.
  • Run mvn -D enable-ci clean install site locally. If this command doesn't succeed, your change will not pass CI.
  • Push your changes to a branch other than main. You will create your PR from that branch.

When creating a PR:

  • Fill in the "Description" above with clear summary of the changes. This includes:
    • If this PR fixes one or more issues, include "Fixes #" lines for each issue.
    • Provide links to relevant documentation on https://docs.github.com/en/rest where possible.
  • All lines of new code should be covered by tests as reported by code coverage. Any lines that are not covered must have PR comments explaining why they cannot be covered. For example, "Reaching this particular exception is hard and is not a particular common scenario."
  • Enable "Allow edits from maintainers".

@@ -50,7 +50,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov
Copy link

codecov bot commented Feb 25, 2023

Codecov Report

Base: 79.22% // Head: 79.22% // No change to project coverage 👍

Coverage data is based on head (b7b9eb0) compared to base (612f5ec).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1617   +/-   ##
=========================================
  Coverage     79.22%   79.22%           
  Complexity     2141     2141           
=========================================
  Files           206      206           
  Lines          6576     6576           
  Branches        364      364           
=========================================
  Hits           5210     5210           
  Misses         1154     1154           
  Partials        212      212           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bitwiseman bitwiseman merged commit f48169f into hub4j:main Feb 25, 2023
@yeikel yeikel deleted the patch-1 branch February 25, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants