From 2c5bde9f42171067294917d71e25ea69ace1c43d Mon Sep 17 00:00:00 2001 From: James Netherton Date: Mon, 29 Apr 2024 13:54:01 +0100 Subject: [PATCH] WIP --- .github/workflows/ci-build.yaml | 131 -------------------------------- 1 file changed, 131 deletions(-) diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 31db36d9b45..c8b627b6287 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -478,134 +478,3 @@ jobs: with: test-report-xml-base-dir: integration-tests test-report-summary-heading: Integration Tests Alternative JDK - - integration-tests-alternative-platform: - runs-on: ${{ matrix.os }} - needs: initial-mvn-install - strategy: - fail-fast: false - matrix: - os: [ 'windows-latest' ] - if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'JVM') - env: - MAVEN_OPTS: -Xmx3000m - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: ${{ env.CHECKOUT_REF }} - fetch-depth: 0 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: '17' - - name: Download Maven Repo - uses: actions/download-artifact@v4 - with: - name: maven-repo - path: .. - - name: Extract Maven Repo - shell: bash - run: | - tar -xzf ../maven-repo.tgz -C ~ - rm -f ../maven-repo.tgz - - name: PDFBox font cache - uses: actions/cache@v4 - if: runner.os == 'Windows' - with: - path: ~/.pdfbox.cache - key: ${{ runner.os }}-pdfbox-cache - - name: cd integration-tests && mvn clean verify - shell: bash - run: | - cd integration-tests - ../mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} \ - -Dskip-testcontainers-tests -Dformatter.skip -Dimpsort.skip -Denforcer.skip \ - --fail-at-end \ - clean verify - - name: Report test failures - uses: ./.github/actions/test-summary - if: ${{ failure() }} - with: - test-report-xml-base-dir: integration-tests - test-report-summary-heading: Integration Tests Alternative Platform ${{matrix.os}} - - examples-tests: - name: Examples Tests - ${{matrix.name}} - needs: initial-mvn-install - runs-on: ubuntu-latest - if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'JVM') - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.initial-mvn-install.outputs.examples-matrix) }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: '17' - - name: Download Maven Repo - uses: actions/download-artifact@v4 - with: - name: maven-repo - path: .. - - name: Extract Maven Repo - shell: bash - run: | - df -h / - tar -xzf ../maven-repo.tgz -C ~ - rm -f ../maven-repo.tgz - df -h / - - name: set CQ_VERSION - run: echo "CQ_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout -N)" >> $GITHUB_ENV - - name: clone and verify examples - env: - EXAMPLE_MODULES: ${{matrix.examples}} - shell: '/usr/bin/bash {0}' - run: | - EXAMPLES_BRANCH="camel-quarkus-main" - - if [[ ${GITHUB_REF_NAME} =~ [0-9]+.[0-9]+.x ]]; then - EXAMPLES_BRANCH=${GITHUB_REF_NAME} - elif [[ ${GITHUB_BASE_REF} =~ [0-9]+.[0-9]+.x ]]; then - EXAMPLES_BRANCH=${GITHUB_BASE_REF} - fi - - git clone --depth 1 --branch ${EXAMPLES_BRANCH} https://github.com/apache/camel-quarkus-examples.git \ - && cd camel-quarkus-examples \ - && echo "Current Examples commit:" $(git rev-parse HEAD) \ - && ./mvnw ${CQ_MAVEN_ARGS} ${BRANCH_OPTIONS} org.l2x6.cq:cq-maven-plugin:2.10.0:examples-set-platform -Dcq.camel-quarkus.version=${CQ_VERSION} - - BUILD_FAILURES=() - - for MODULE in ${EXAMPLE_MODULES//,/ }; do - cd ${MODULE} - - ../mvnw ${CQ_MAVEN_ARGS} clean verify \ - -Dformatter.skip -Dimpsort.skip \ - -Dquarkus.native.builder-image.pull=missing \ - -Pnative,docker,ci - - if [[ $? -ne 0 ]]; then - BUILD_FAILURES[${#BUILD_FAILURES[@]}]=${MODULE} - fi - - cd - - done - - if [[ ${#BUILD_FAILURES[@]} -gt 0 ]]; then - echo -e "\nBuild errors were encountred in the following projects:\n" - for FAILURE in ${BUILD_FAILURES[@]}; do - echo "* ${FAILURE}" - done - echo -e "\nCheck build logs for further information." - exit 1 - fi - - name: Report test failures - uses: ./.github/actions/test-summary - if: ${{ failure() }} - with: - test-report-summary-heading: Examples Tests ${{matrix.name}}