diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1deb2c2e84..ab62db95f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,6 +83,24 @@ jobs: flink-version: "v1_20" http-client: ${{ matrix.http-client }} test: test_application_operations.sh + java_runtimes: + name: Java runtimes smoke test + needs: e2e_smoke_test + strategy: + matrix: + http-client: [ "okhttp" ] + java-version: [ "11", "17"] + flink-version: + - "v1_20" + - "v1_19" + - "v1_18" + uses: ./.github/workflows/e2e.yaml + with: + java-version: ${{ matrix.java-version }} + flink-version: ${{ matrix.flink-version }} + http-client: ${{ matrix.http-client }} + test: test_application_operations.sh + append-java-version: true e2e_namespace_tests: name: Alternative namespace tests needs: e2e_smoke_test @@ -90,8 +108,8 @@ jobs: matrix: flink-version: - "v1_20" - - "v1_18" - "v1_19" + - "v1_18" - "v1_17" - "v1_16" mode: diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index d349a43471..9a1f6ce429 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -27,6 +27,9 @@ on: create-namespace: type: boolean default: false + append-java-version: + type: boolean + default: false jobs: e2e_test: @@ -78,6 +81,9 @@ jobs: - name: Run Flink e2e tests run: | FLINK_IMAGE=$(sed --regexp-extended 's/v([0-9]+)_([0-9]+)/flink:\1.\2/g' <<< ${{ inputs.flink-version }} ) + if [[ "${{ inputs.append-java-version }}" == "true" ]]; then + FLINK_IMAGE=${FLINK_IMAGE}-java${{ inputs.java-version }} + fi echo FLINK_IMAGE=${FLINK_IMAGE} sed -i "s/image: flink:.*/image: ${FLINK_IMAGE}/" e2e-tests/data/*.yaml sed -i "s/flinkVersion: .*/flinkVersion: ${{ inputs.flink-version }}/" e2e-tests/data/*.yaml