Skip to content

Commit

Permalink
Merge pull request #873 from ahjohannessen/wip-jdk21-for-ci
Browse files Browse the repository at this point in the history
ci: use jdk 21
  • Loading branch information
ahjohannessen authored Dec 20, 2023
2 parents b8f9c62 + 8a738ff commit fad05c4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [3]
java: [temurin@17]
java: [temurin@21]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
Expand All @@ -38,17 +38,17 @@ jobs:
with:
fetch-depth: 0

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

- name: sbt update
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
if: matrix.java == 'temurin@21' && steps.setup-java-temurin-21.outputs.cache-hit == 'false'
run: sbt +update

- name: Start Single Node
Expand Down Expand Up @@ -132,25 +132,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
java: [temurin@17]
java: [temurin@21]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: sbt update
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
if: matrix.java == 'temurin@21' && steps.setup-java-temurin-21.outputs.cache-hit == 'false'
run: sbt +update

- name: Download target directories (3)
Expand Down Expand Up @@ -201,25 +201,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
java: [temurin@17]
java: [temurin@21]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: sbt update
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
if: matrix.java == 'temurin@21' && steps.setup-java-temurin-21.outputs.cache-hit == 'false'
run: sbt +update

- name: Submit Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pull_request_rules:
- or:
- body~=labels:.*early-semver-patch
- body~=labels:.*early-semver-minor
- status-success=Build and Test (ubuntu-latest, 3, temurin@17)
- status-success=Build and Test (ubuntu-latest, 3, temurin@21)
actions:
merge: {}
- name: Label core PRs
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ addCommandAlias("compileDocs", "docs/mdoc")
inThisBuild(
List(
githubWorkflowTargetBranches := Seq("main"),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17")),
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("21")),
githubWorkflowBuildPreamble += WorkflowStep.Run(
name = Some("Start Single Node"),
commands = List("pushd .docker", "./single-node.sh up -d", "popd"),
Expand Down

0 comments on commit fad05c4

Please sign in to comment.