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

build: Run unit tests on JDK 21 #1064

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
include:
- { jdkVersion: "1.11.0", jvmName: "temurin:1.11.0", extraOpts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' }
- { jdkVersion: "1.17.0", jvmName: "temurin:1.17.0", extraOpts: '' }
- { jdkVersion: "1.21.0", jvmName: "temurin:1.21", extraOpts: '' }
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
Expand All @@ -40,11 +41,11 @@ jobs:
uses: coursier/cache-action@d1039466d0812d6370649b9afb02bbf5f646bacf

- name: Set up JDK ${{ matrix.jdkVersion }}
# https://github.com/coursier/setup-action/releases
# v1.3.0
uses: coursier/setup-action@70323223454ac2a9eb2de46f389b4d045cbcdea5
uses: coursier/[email protected]
with:
jvm: ${{ matrix.jvmName }}
# FIXME default index not giving us access to JDK 21 (yet)
jvm-index: https://raw.githubusercontent.com/coursier/jvm-index/32d659500e6c65efb9eee91718a0fb0e797ad4ee/index.json

- name: Run tests with default Scala and Java ${{ matrix.jdkVersion }}
run: sbt "test" ${{ matrix.extraOpts }}
Expand Down