Skip to content

Commit 5a95383

Browse files
committed
Update Lambda runtime and CI to Java 21
As suggested in #209 (comment), we want the Lambda runtime to match the Java version used by developers. I've also updated CI to use Java 21. Ideally, we wouldn't have to do this separately anymore, as setup-java has added partial support for asdf's .tool-versions file with actions/setup-java#606, but unfortunately actions/setup-java#615 means that it won't work with Corretto version numbers.
1 parent 64d7a2e commit 5a95383

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424

2525
# Configuring caching is also recommended.
2626
# See https://github.com/actions/setup-java
27-
- name: Setup Java 11
28-
uses: actions/setup-java@v3
27+
- name: Setup Java
28+
uses: actions/setup-java@v4
2929
with:
30-
java-version: '11'
30+
java-version: '21'
3131
distribution: 'corretto'
3232
cache: 'sbt'
3333

cloudformation/cfn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Resources:
6161
- s3:GetObject
6262
Resource: !Sub arn:aws:s3:::${ConfigBucket}/*
6363
Handler: com.gu.anghammarad.Lambda::handleRequest
64-
Runtime: java11
64+
Runtime: java21
6565
MemorySize: 512
6666
Timeout: 30
6767
CodeUri:

0 commit comments

Comments
 (0)