diff --git a/.github/workflows/buildpack-integration-test.yml b/.github/workflows/buildpack-integration-test.yml index 728f5a0f..2c320a6e 100644 --- a/.github/workflows/buildpack-integration-test.yml +++ b/.github/workflows/buildpack-integration-test.yml @@ -35,4 +35,4 @@ jobs: prerun: 'invoker/conformance/prerun.sh' builder-runtime: 'java17' builder-runtime-version: '17' - builder-url: gcr.io/gae-runtimes/buildpacks/google-gae-22/java/builder:latest \ No newline at end of file + builder-url: gcr.io/gae-runtimes/buildpacks/google-gae-22/java/builder:latest diff --git a/.github/workflows/conformance.yaml b/.github/workflows/conformance.yaml index b53b1c73..f997ebd9 100644 --- a/.github/workflows/conformance.yaml +++ b/.github/workflows/conformance.yaml @@ -14,9 +14,7 @@ jobs: strategy: matrix: java: [ - 11.x - # 12.x, - # 13.x + 11.x, ] steps: - name: Harden Runner diff --git a/.github/workflows/unit.yaml b/.github/workflows/unit.yaml index 7a7f63a6..54f15429 100644 --- a/.github/workflows/unit.yaml +++ b/.github/workflows/unit.yaml @@ -14,7 +14,8 @@ jobs: matrix: java: [ 11.x, - 17.x + 17.x, + 21-ea ] steps: - name: Harden Runner @@ -25,6 +26,8 @@ jobs: allowed-endpoints: > github.com:443 repo.maven.apache.org:443 + api.adoptium.net:443 + *.githubusercontent.com:443 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 diff --git a/invoker/core/src/test/java/com/google/cloud/functions/invoker/IntegrationTest.java b/invoker/core/src/test/java/com/google/cloud/functions/invoker/IntegrationTest.java index f84ddbdd..3f3de837 100644 --- a/invoker/core/src/test/java/com/google/cloud/functions/invoker/IntegrationTest.java +++ b/invoker/core/src/test/java/com/google/cloud/functions/invoker/IntegrationTest.java @@ -363,6 +363,10 @@ private static int getJavaVersion() { if (dot != -1) { version = version.substring(0, dot); } + int dash = version.indexOf("-"); + if (dash != -1) { + version = version.substring(0, dash); + } } return Integer.parseInt(version); }