Skip to content

Commit

Permalink
test java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Oct 28, 2023
1 parent 295a8a7 commit e3deeb4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.11.12, 2.12.18, 2.13.12, 3.3.1]
java: [zulu@8, zulu@11, zulu@17]
java: [zulu@8, zulu@11, zulu@17, zulu@21]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -56,6 +56,14 @@ jobs:
java-version: 17
cache: sbt

- name: Setup Java (zulu@21)
if: matrix.java == 'zulu@21'
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 21
cache: sbt

- name: Check that workflows are up to date
run: sbt -J-Xmx2G '++ ${{ matrix.scala }}' githubWorkflowCheck

Expand Down Expand Up @@ -110,6 +118,14 @@ jobs:
java-version: 17
cache: sbt

- name: Setup Java (zulu@21)
if: matrix.java == 'zulu@21'
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 21
cache: sbt

- name: Download target directories (2.11.12)
uses: actions/download-artifact@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ Compile / resourceGenerators += Def.task {
Test / parallelExecution := false

ThisBuild / githubWorkflowSbtCommand := "sbt -J-Xmx2G"
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec(Zulu, "8"), JavaSpec(Zulu, "11"), JavaSpec(Zulu, "17"))
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec(Zulu, "8"), JavaSpec(Zulu, "11"),
JavaSpec(Zulu, "17"), JavaSpec(Zulu, "21"))
ThisBuild / githubWorkflowBuild := Seq(WorkflowStep.Sbt(List("test", "mimaReportBinaryIssues")))
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
ThisBuild / githubWorkflowPublishTargetBranches := Seq(
Expand Down

0 comments on commit e3deeb4

Please sign in to comment.