-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
76 lines (63 loc) · 2.2 KB
/
action.yml
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
74
75
76
name: 'colcon_build_test'
description: 'Compile code with colcon, and run colcon test.'
inputs:
packages_names:
description: 'Name of the colcon packages to build and test'
required: true
colcon_meta_file:
description: 'colcon.meta file to set cmake options. If empty, it does not use any file'
required: false
default: ''
cmake_args:
description: 'Cmake arguments'
required: false
default: ''
ctest_args:
description: 'cTest arguments'
required: false
default: ''
test_report_artifact:
description: >
Name of the artifact to be uploaded containing the test report in JUnit format. It shall be unique within the workflow run.
Default: test_report_<github.workflow>_<github.job>_<matrix.*>
required: false
default: ''
cmake_build_type:
description: 'Set the cmake build type'
required: false
default: 'Release'
workspace:
description: 'Workspace to build'
required: false
default: '${{ github.workspace }}'
workspace_dependencies:
description: 'Workspace to source where dependencies are'
required: false
default: ''
outputs:
ctest_results_path:
description: "Path to test results"
value: ${{ steps.test.outputs.ctest_results_path }}
runs:
using: composite
steps:
- name: Build
uses: eProsima/eProsima-CI/multiplatform/colcon_build@main
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
colcon_build_args: '--packages-up-to ${{ inputs.packages_names }}'
cmake_args: ' ${{ inputs.cmake_args }}'
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
cmake_build_type: ${{ inputs.cmake_build_type }}
- name: Test
id: test
uses: eProsima/eProsima-CI/multiplatform/colcon_test@main
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
workspace: ${{ inputs.workspace }}
packages_names: ${{ inputs.packages_names }}
test_report_artifact: ${{ inputs.test_report_artifact }}
colcon_test_args: ${{ inputs.colcon_test_args }}
ctest_args: ' ${{ inputs.ctest_args }}'
workspace_dependencies: ${{ inputs.workspace_dependencies }}