Skip to content

Commit 336ebf0

Browse files
committed
chore: modify CI build for 1.x to run using Corretto 11
1 parent 3307990 commit 336ebf0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'corretto'
20+
java-version: 11
1621
- name: Build latest
1722
run: mvn -q clean install
1823
working-directory: ./aws-serverless-java-container-core
@@ -22,6 +27,11 @@ jobs:
2227
runs-on: ubuntu-latest
2328
steps:
2429
- uses: actions/checkout@v3
30+
- name: Set up JDK 11
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'corretto'
34+
java-version: 11
2535
- name: Build latest
2636
run: ./gha_build.sh jersey true true
2737
- name: Set up JDK 8
@@ -49,6 +59,11 @@ jobs:
4959
runs-on: ubuntu-latest
5060
steps:
5161
- uses: actions/checkout@v3
62+
- name: Set up JDK 11
63+
uses: actions/setup-java@v3
64+
with:
65+
distribution: 'corretto'
66+
java-version: 11
5267
- name: Build latest
5368
# we reduce the minCoverage for this run because it will skip the SpringBoot 1.5 tests since they are no longer compatible with
5469
# Spring core 5.2 and above. SpringBoot 1.5 is deprecated
@@ -65,6 +80,11 @@ jobs:
6580
runs-on: ubuntu-latest
6681
steps:
6782
- uses: actions/checkout@v3
83+
- name: Set up JDK 11
84+
uses: actions/setup-java@v3
85+
with:
86+
distribution: 'corretto'
87+
java-version: 11
6888
- name: Build latest
6989
run: ./gha_build.sh springboot2 true true
7090
# https://github.com/spring-projects/spring-boot/wiki/Supported-Versions

0 commit comments

Comments
 (0)