Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Apr 29, 2024
1 parent 3bc103e commit 2c5bde9
Showing 1 changed file with 0 additions and 131 deletions.
131 changes: 0 additions & 131 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit 2c5bde9

Please sign in to comment.