From 9be45801469a76efd579011afe531a92a5f89ba0 Mon Sep 17 00:00:00 2001 From: Matt Dziuban Date: Thu, 22 Feb 2024 10:00:03 -0500 Subject: [PATCH] Test on java 21. --- .github/workflows/ci.yml | 10 +++++++++- build.sbt | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c455a5a..85bfd72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: matrix: os: [ubuntu-latest] scala: [2.13.12, 3.3.1] - java: [temurin@8, temurin@11, temurin@17] + java: [temurin@8, temurin@11, temurin@17, temurin@21] runs-on: ${{ matrix.os }} steps: - name: Checkout current branch (full) @@ -56,6 +56,14 @@ jobs: java-version: 17 cache: sbt + - name: Setup Java (temurin@21) + if: matrix.java == 'temurin@21' + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + cache: sbt + - name: Check that workflows are up to date run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck diff --git a/build.sbt b/build.sbt index 7b361c6..8384653 100644 --- a/build.sbt +++ b/build.sbt @@ -6,7 +6,7 @@ lazy val scala3 = "3.3.1" ThisBuild / crossScalaVersions := Seq(scala213, scala3) // GitHub Actions config -val javaVersions = Seq(8, 11, 17).map(v => JavaSpec.temurin(v.toString)) +val javaVersions = Seq(8, 11, 17, 21).map(v => JavaSpec.temurin(v.toString)) ThisBuild / githubWorkflowJavaVersions := javaVersions ThisBuild / githubWorkflowArtifactUpload := false