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.git
The following commit(s) were added to refs/heads/main by this push: new e691b5af0f Add CI workflow steps to test on JDK 21 e691b5af0f is described below commit e691b5af0fc08cfb7bc2d53e426eb7c495b38d11 Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Fri Dec 1 08:22:28 2023 +0000 Add CI workflow steps to test on JDK 21 Fixes #5332 --- .github/workflows/camel-master-cron.yaml | 57 +++++++++++++++++++++++---- .github/workflows/ci-build.yaml | 62 ++++++++++++++++++++++++++---- .github/workflows/quarkus-master-cron.yaml | 57 +++++++++++++++++++++++---- 3 files changed, 152 insertions(+), 24 deletions(-) diff --git a/.github/workflows/camel-master-cron.yaml b/.github/workflows/camel-master-cron.yaml index 58241eba18..9985ccc8c4 100644 --- a/.github/workflows/camel-master-cron.yaml +++ b/.github/workflows/camel-master-cron.yaml @@ -292,7 +292,7 @@ jobs: strategy: fail-fast: false matrix: - java: [ '17' ] + java: [ '17', '21' ] env: MAVEN_OPTS: -Xmx3000m steps: @@ -307,13 +307,6 @@ jobs: df -h / tar -xzf ../maven-repo.tgz -C ~ df -h / - hostname - hostname -f - hostname -A - HOSTS_LINE="127.0.0.1 $(hostname -f) $(hostname -A)" - echo "HOSTS_LINE=$HOSTS_LINE" - echo "${HOSTS_LINE}" | sudo tee -a /etc/hosts - cat /etc/hosts - name: Checkout uses: actions/checkout@v4 with: @@ -342,6 +335,54 @@ jobs: run: | ./mvnw ${CQ_MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -DissueId=${{ env.ISSUE_ID }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-main -Dbranch-commit=$(cat ~/build-data/main-sha.txt) + integration-tests-alternative-jdk: + runs-on: ubuntu-latest + needs: initial-mvn-install + env: + MAVEN_OPTS: -Xmx3000m + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: camel-main + fetch-depth: 0 + - name: Reclaim Disk Space + run: | + df -h / + echo "Reclaiming disk space..." + sudo rm -rf /opt/ghc \ + rm -rf /opt/pipx \ + rm -rf /usr/local/go \ + rm -rf /usr/local/lib/android \ + rm -rf /usr/local/share/boost \ + rm -rf /usr/share/dotnet \ + rm -rf /usr/share/rust \ + rm -rf /usr/share/swift + df -h / + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - name: Download Maven Repo + uses: actions/download-artifact@v3 + with: + name: maven-repo + path: .. + - name: Extract Maven Repo + shell: bash + run: | + df -h / + tar -xzf ../maven-repo.tgz -C ~ + df -h / + - name: cd integration-tests && mvn clean verify + run: | + cd integration-tests + ../mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} \ + -Dformatter.skip -Dimpsort.skip -Denforcer.skip \ + --fail-at-end \ + clean verify + integration-tests-alternative-platform: runs-on: ${{ matrix.os }} needs: initial-mvn-install diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index e8b17d9fd8..aeb0e75a46 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -363,7 +363,7 @@ jobs: strategy: fail-fast: false matrix: - java: [ '17' ] + java: [ '17', '21' ] env: MAVEN_OPTS: -Xmx3000m steps: @@ -392,13 +392,6 @@ jobs: df -h / tar -xzf ../maven-repo.tgz -C ~ df -h / - hostname - hostname -f - hostname -A - HOSTS_LINE="127.0.0.1 $(hostname -f) $(hostname -A)" - echo "HOSTS_LINE=$HOSTS_LINE" - echo "${HOSTS_LINE}" | sudo tee -a /etc/hosts - cat /etc/hosts - name: cd integration-tests-jvm && mvn clean test run: | cd integration-tests-jvm @@ -407,6 +400,59 @@ jobs: --fail-at-end \ clean test + integration-tests-alternative-jdk: + runs-on: ubuntu-latest + needs: initial-mvn-install + if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'JVM') + env: + MAVEN_OPTS: -Xmx3000m + steps: + - name: Setup oss-snapshots profile + if: github.ref == 'refs/heads/quarkus-main' || github.base_ref == 'quarkus-main' + run: | + echo "BRANCH_OPTIONS=-Poss-snapshots -Dquarkus.version=999-SNAPSHOT" >> $GITHUB_ENV + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ env.CHECKOUT_REF }} + fetch-depth: 0 + - name: Reclaim Disk Space + run: | + df -h / + echo "Reclaiming disk space..." + sudo rm -rf /opt/ghc \ + rm -rf /opt/pipx \ + rm -rf /usr/local/go \ + rm -rf /usr/local/lib/android \ + rm -rf /usr/local/share/boost \ + rm -rf /usr/share/dotnet \ + rm -rf /usr/share/rust \ + rm -rf /usr/share/swift + df -h / + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - name: Download Maven Repo + uses: actions/download-artifact@v3 + with: + name: maven-repo + path: .. + - name: Extract Maven Repo + shell: bash + run: | + df -h / + tar -xzf ../maven-repo.tgz -C ~ + df -h / + - name: cd integration-tests && mvn clean verify + run: | + cd integration-tests + ../mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} \ + -Dformatter.skip -Dimpsort.skip -Denforcer.skip \ + --fail-at-end \ + clean verify + integration-tests-alternative-platform: runs-on: ${{ matrix.os }} needs: initial-mvn-install diff --git a/.github/workflows/quarkus-master-cron.yaml b/.github/workflows/quarkus-master-cron.yaml index 34fa8106c1..ff55ced7ae 100644 --- a/.github/workflows/quarkus-master-cron.yaml +++ b/.github/workflows/quarkus-master-cron.yaml @@ -293,7 +293,7 @@ jobs: strategy: fail-fast: false matrix: - java: [ '17' ] + java: [ '17', '21' ] env: MAVEN_OPTS: -Xmx3000m steps: @@ -308,13 +308,6 @@ jobs: df -h / tar -xzf ../maven-repo.tgz -C ~ df -h / - hostname - hostname -f - hostname -A - HOSTS_LINE="127.0.0.1 $(hostname -f) $(hostname -A)" - echo "HOSTS_LINE=$HOSTS_LINE" - echo "${HOSTS_LINE}" | sudo tee -a /etc/hosts - cat /etc/hosts - name: Checkout uses: actions/checkout@v4 with: @@ -343,6 +336,54 @@ jobs: run: | ./mvnw ${CQ_MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -DissueId=${{ env.ISSUE_ID }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-main -Dbranch-commit=$(cat ~/build-data/main-sha.txt) + integration-tests-alternative-jdk: + runs-on: ubuntu-latest + needs: initial-mvn-install + env: + MAVEN_OPTS: -Xmx3000m + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: quarkus-main + fetch-depth: 0 + - name: Reclaim Disk Space + run: | + df -h / + echo "Reclaiming disk space..." + sudo rm -rf /opt/ghc \ + rm -rf /opt/pipx \ + rm -rf /usr/local/go \ + rm -rf /usr/local/lib/android \ + rm -rf /usr/local/share/boost \ + rm -rf /usr/share/dotnet \ + rm -rf /usr/share/rust \ + rm -rf /usr/share/swift + df -h / + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - name: Download Maven Repo + uses: actions/download-artifact@v3 + with: + name: maven-repo + path: .. + - name: Extract Maven Repo + shell: bash + run: | + df -h / + tar -xzf ../maven-repo.tgz -C ~ + df -h / + - name: cd integration-tests && mvn clean verify + run: | + cd integration-tests + ../mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} \ + -Dformatter.skip -Dimpsort.skip -Denforcer.skip \ + --fail-at-end \ + clean verify + integration-tests-alternative-platform: runs-on: ${{ matrix.os }} needs: initial-mvn-install