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

[NOID] Setups testing for JDK 21 #532

Merged
merged 2 commits into from
Nov 10, 2023
Merged

[NOID] Setups testing for JDK 21 #532

merged 2 commits into from
Nov 10, 2023

Conversation

ncordon
Copy link
Collaborator

@ncordon ncordon commented Nov 10, 2023

Why

We want to compile with JDK 17 but test with both JDK 17 and JDK 21

@ncordon ncordon force-pushed the jdk-21-testing branch 3 times, most recently from ff905b5 to 8ef7ed2 Compare November 10, 2023 14:40
@@ -81,6 +92,7 @@ jobs:
fail-fast: false
matrix:
project: ['common', 'core', 'processor', 'test-utils', 'it']
java-version: ['17', '21']
Copy link
Contributor

Choose a reason for hiding this comment

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

I remember there was a reason we had 17.0.8, but not what that reason was, is it no longer a problem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because we had to move it up specifically with a breaking change they did in JDK? But that shouldn't happen hopefully very often

- uses: ./.github/actions/setup-gradle-cache
- name: Run tests
shell: bash
run: ./gradlew ${{inputs.project-name}}:check --parallel
run: ./gradlew ${{inputs.project-name}}:test --parallel
Copy link
Contributor

Choose a reason for hiding this comment

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

Is check not needed because we run the other things e.g spotless separately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. Because spotless didn't work in f98d019 for Java 21 🤷

Copy link
Contributor

@gem-neo4j gem-neo4j left a comment

Choose a reason for hiding this comment

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

LGTM :) Thank you

@ncordon ncordon merged commit c793397 into dev Nov 10, 2023
20 checks passed
@ncordon ncordon deleted the jdk-21-testing branch November 10, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants