From d4d593ab7abe4b161d7b4dad9255478f8b7a1e63 Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Wed, 24 Nov 2021 15:11:32 +0100 Subject: [PATCH] ci: Update pipelines to verify compilation on Java 17 Signed-off-by: Marc Nuri --- .github/workflows/build.yml | 2 +- .github/workflows/windows-build.yml | 2 +- .../io/fabric8/kubernetes/client/utils/SerializationTest.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 086282e8d4e..1707e348a8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8,11] + java: [8,17] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index a64d7102dcc..20db53ff841 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -41,7 +41,7 @@ jobs: runs-on: windows-latest strategy: matrix: - java: [11] + java: [17] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/utils/SerializationTest.java b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/utils/SerializationTest.java index fda3df89fd3..22e81635c46 100644 --- a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/utils/SerializationTest.java +++ b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/utils/SerializationTest.java @@ -168,7 +168,8 @@ void testSerializeYamlWithAlias() { .hasFieldOrPropertyWithValue("spec.securityContext.runAsGroup", 1000L) .hasFieldOrPropertyWithValue("spec.securityContext.runAsUser", 1000L) .extracting(Pod::getSpec) - .returns(Arrays.asList(new Toleration("NoSchedule", "nodeType", "Equal", null, "build")), PodSpec::getTolerations) + .returns(Collections.singletonList(new Toleration("NoSchedule", "nodeType", "Equal", null, "build")), + PodSpec::getTolerations) .extracting(PodSpec::getContainers).asList() .hasSize(2) .extracting("name", "image", "resources.requests.cpu")