You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2024/01/31 17:28:39 UTC

(camel-quarkus-examples) 04/12: Add CI workflow steps to test on JDK 21

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git

commit f33698cb9e56745317ba086e81752293894e92b3
Author: James Netherton <ja...@gmail.com>
AuthorDate: Mon Dec 4 10:03:39 2023 +0000

    Add CI workflow steps to test on JDK 21
---
 .github/workflows/ci-build.yaml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml
index ee647ae..4cc8bc9 100644
--- a/.github/workflows/ci-build.yaml
+++ b/.github/workflows/ci-build.yaml
@@ -163,6 +163,40 @@ jobs:
         run: |
           [[ -z $(git status --porcelain) ]] || { echo 'There are uncommitted changes'; git status; exit 1; }
 
+  integration-tests-alternative-jdk:
+    name: Integration Tests JDK - ${{ matrix.jdk }}
+    needs: initial-mvn-install
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        jdk: ['21']
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Set up JDK {{ matrix.jdk }}
+        uses: actions/setup-java@v3
+        with:
+          distribution: 'temurin'
+          java-version: ${{ matrix.jdk }}
+      - name: Download Maven Repo
+        uses: actions/download-artifact@v3
+        with:
+          name: maven-repo
+          path: ..
+      - name: Extract Maven Repo
+        shell: bash
+        run: |
+          tar -xzf ../maven-repo.tgz -C ~
+      - name: Integration Tests
+        shell: bash
+        run: |
+          ./mvnw-for-each.sh ${MAVEN_ARGS} clean verify
+      - name: Fail if there are uncommitted changes
+        shell: bash
+        run: |
+          [[ -z $(git status --porcelain) ]] || { echo 'There are uncommitted changes'; git status; exit 1; }
+
   integration-tests-alternative-platform:
     name: Integration Tests Alternative Platform - ${{matrix.os}}
     needs: initial-mvn-install