Skip to content

Upgrade to Camel 4.18.1 #958

Upgrade to Camel 4.18.1

Upgrade to Camel 4.18.1 #958

Workflow file for this run

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Build and Test Apache Camel Karaf
on:
push:
branches:
- 'main'
- 'camel-karaf-**'
pull_request:
paths-ignore:
- '.gitignore'
- '.asf.yml'
- 'LICENSE'
- 'NOTICE'
- '**/*.md'
- 'docs/**'
permissions:
contents: read
checks: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet \
/opt/ghc \
"/usr/local/share/boost" \
"$AGENT_TOOLSDIRECTORY"
docker system prune -af
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: zulu
cache: maven
- run: ./mvnw -V --no-transfer-progress clean install -DskipTests
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: |
**/target/*.jar
**/target/classes/
**/target/test-classes/
**/target/feature/
retention-days: 1
test:
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
java-version: ['17', '21']
name: Test (Java ${{ matrix.java-version }})
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet \
/opt/ghc \
"/usr/local/share/boost" \
"$AGENT_TOOLSDIRECTORY"
docker system prune -af
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: zulu
cache: maven
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
- run: ./mvnw -V --no-transfer-progress install -Ddump.logs.on.failure=true
- name: Publish test results
if: always()
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: '**/target/surefire-reports/*.xml'
check_name: Test Results (Java ${{ matrix.java-version }})
- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports-java-${{ matrix.java-version }}
path: '**/target/surefire-reports/'
retention-days: 7