Skip to content
Merged
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
10 changes: 0 additions & 10 deletions .github/actions/incremental-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ inputs:
description: 'The GitHub repository name (example, apache/camel)'
required: false
default: ${{ github.repository }}
artifact-upload-suffix:
description: 'Suffix for artifacts stored'
required: false
default: ''
extra-modules:
description: 'Additional modules to test (comma-separated paths, e.g. from /component-test)'
required: false
Expand All @@ -56,9 +52,3 @@ runs:
EXTRA_MODULES: ${{ inputs.extra-modules }}
shell: bash
run: ${{ github.action_path }}/incremental-build.sh ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd "$PR_ID" "$GITHUB_REPO" "$EXTRA_MODULES"
- name: archive logs
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
name: incremental-test-${{ inputs.artifact-upload-suffix }}.log
path: incremental-test.log
21 changes: 4 additions & 17 deletions .github/actions/pr-id/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,19 @@
# ---------------------------------------------------------------------------

name: PR id
description: Store an artifact with the number of the PR issued

inputs:
artifact-name:
default: pr-id
description: 'The name of the artifact to store PR id number'
required: true
description: Store the number of the PR issued

runs:
using: "composite"

steps:

# Only run these on pull request events
- name: Save new coverage value
- name: Save PR id
if: github.event_name == 'pull_request'
shell: bash
env:
ARTIFACT_NAME: ${{ inputs.artifact-name }}
EVENT_NUMBER: ${{ github.event.number }}
run: |
mkdir -p "/tmp/$ARTIFACT_NAME"
echo "$EVENT_NUMBER" > "/tmp/$ARTIFACT_NAME/id"

- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: ${{ inputs.artifact-name }}
path: /tmp/${{ inputs.artifact-name }}/
mkdir -p "/tmp/pr-id"
echo "$EVENT_NUMBER" > "/tmp/pr-id/id"
7 changes: 6 additions & 1 deletion .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,9 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-mvnd-install: 'true'
artifact-upload-suffix: main-java-${{ matrix.java }}
- name: archive incremental test logs
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: always()
with:
name: incremental-test-main-java-${{ matrix.java }}.log
path: incremental-test.log
7 changes: 6 additions & 1 deletion .github/workflows/pr-build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,13 @@ jobs:
pr-id: ${{ github.event.number || inputs.pr_number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
skip-mvnd-install: 'true'
artifact-upload-suffix: java-${{ matrix.java }}
extra-modules: ${{ inputs.extra_modules || '' }}
- name: archive incremental test logs
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: always()
with:
name: incremental-test-java-${{ matrix.java }}.log
path: incremental-test.log
# All non-experimental JDK matrix entries upload with overwrite: true.
# This ensures a comment is posted even if one JDK build fails — the
# content is identical across JDKs (same modules tested), so last writer wins.
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/pr-id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
uses: actions/checkout@v6
with:
persist-credentials: false
submodules: recursive
submodules: recursive
- name: Store PR id number
uses: ./.github/actions/pr-id
- name: Upload PR id artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: github.event_name == 'pull_request'
with:
name: pr-id
path: /tmp/pr-id/
Loading