-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Expand file tree
/
Copy pathaction.yaml
More file actions
73 lines (72 loc) · 2.94 KB
/
Copy pathaction.yaml
File metadata and controls
73 lines (72 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# 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: "Incremental Test Runner"
description: "Test only affected projects, using file-path analysis and POM dependency detection"
inputs:
pr-id:
description: 'Id of the pull request (optional for push builds)'
required: false
default: ''
github-token:
description: 'The github token to access to the API'
required: false
skip-mvnd-install:
description: 'Flag indicating whether the installation of mvnd should be skipped'
required: false
default: 'false'
github-repo:
description: 'The GitHub repository name (example, apache/camel)'
required: false
default: ${{ github.repository }}
extra-modules:
description: 'Additional modules to test (comma-separated paths, e.g. from /component-test)'
required: false
default: ''
maven-extra-args:
description: 'Extra Maven arguments to pass to the build (e.g. -Denforcer.phase=none)'
required: false
default: ''
flake-label:
description: 'Names the matrix entry in the recovered-flake report (e.g. "JDK 17"), so a reader can tell which entry a reported flake came from'
required: false
default: ''
runs:
using: "composite"
steps:
- id: install-mvnd
uses: apache/camel/.github/actions/install-mvnd@main
with:
dry-run: ${{ inputs.skip-mvnd-install }}
# collect-flakes.py declares its dependencies inline (PEP 723); uv is what
# honours that block. Installed here rather than in the caller so the action
# stays self-contained for downstream repos that reuse it.
- id: install-uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: true
version: "0.12.5"
python-version: "3.11"
- name: maven test
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
PR_ID: ${{ inputs.pr-id }}
GITHUB_REPO: ${{ inputs.github-repo }}
EXTRA_MODULES: ${{ inputs.extra-modules }}
MAVEN_EXTRA_ARGS: ${{ inputs.maven-extra-args }}
FLAKE_LABEL: ${{ inputs.flake-label }}
shell: bash
run: ${{ github.action_path }}/incremental-build.sh ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd "$PR_ID" "$GITHUB_REPO" "$EXTRA_MODULES"