Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/depsreview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
name: 'Dependency Review'
on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down
94 changes: 94 additions & 0 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
#
# 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: Main Branch Build

on:
push:
branches:
- main
- camel-4.4.x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd keep only last 2 LTS instead. Altough this is not really affecting as we don't merge anything to older branches, it could be perceived as an argument for users which expects longer timeline maintenance for those older branches.

- camel-4.8.x
- camel-4.10.x
- camel-4.14.x
paths-ignore:
- README.md
- SECURITY.md
- NOTICE.txt

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
if: github.repository == 'apache/camel'
runs-on: ubuntu-latest
strategy:
matrix:
java: ['17', '21']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the merge I'd reduce the quantity of resources by only checking against the latest JVM supported instead.

fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- id: install-packages
uses: ./.github/actions/install-packages
- id: install-mvnd
uses: ./.github/actions/install-mvnd
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: ./etc/scripts/regen.sh
- name: Archive build logs
uses: actions/upload-artifact@v4
if: always()
with:
name: build-jdk-${{ matrix.java }}.log
path: build.log
retention-days: 7
- name: Check for uncommitted changes
shell: bash
run: |
[[ -z $(git status --porcelain) ]] || { echo 'There are uncommitted changes'; git status; echo; echo; git diff; exit 1; }
- name: Run tests
run: |
${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -l test.log $MVND_OPTS install -DskipITs
- name: Archive test logs
uses: actions/upload-artifact@v4
if: always()
with:
name: test-jdk-${{ matrix.java }}.log
path: test.log
retention-days: 7
- name: Publish Test Results
if: always()
run: |
echo "## Test Results for JDK ${{ matrix.java }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
# Count test results
TESTS=$(find . -path '*target/surefire-reports/*.xml' -exec grep -l 'testsuite' {} \; 2>/dev/null | wc -l)
echo "Found test report files: $TESTS" >> $GITHUB_STEP_SUMMARY

4 changes: 4 additions & 0 deletions .github/workflows/pr-build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ on:
- Jenkinsfile.*
- NOTICE.txt

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ name: PR Comment Build
on:
issue_comment:
types: [created]
permissions:

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number }}
cancel-in-progress: true

permissions:
contents: read

jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-doc-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
paths:
- '**.adoc'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down