-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
89 lines (75 loc) · 3.03 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
77
78
79
80
81
82
83
84
85
86
87
88
89
name: 'colcon_test'
description: 'Execute colcon test command with arguments given'
inputs:
colcon_meta_file:
description: colcon.meta file to set ctest options. If empty, it uses an empty file
required: false
default: ''
colcon_test_args:
description: 'args to pass to colcon test command (use ctest_args to set ctest arguments)'
required: false
default: ''
colcon_test_args_default:
description: 'Default args to pass to colcon test command (use ctest_args to set ctest arguments)'
required: false
default: '--event-handlers=console_direct+ --return-code-on-test-failure'
ctest_args:
description: 'args to pass to colcon test command'
required: false
default: ''
ctest_args_default:
description: 'Default args to pass to colcon test command'
required: false
default: '--timeout 60'
packages_names:
description: 'Name of the colcon packages to build and test'
required: true
workspace:
description: 'Workspace where built has been done'
required: false
default: '${{ github.workspace }}'
workspace_dependencies:
description: 'Workspace to source where dependencies are'
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: ''
outputs:
ctest_results_path:
description: "Path to test results"
value: ${{ steps.test_ubuntu_mac.outputs.ctest_results_path || steps.test_windows.outputs.ctest_results_path }}
runs:
using: composite
steps:
- name: Run in ubuntu or macOS
id: test_ubuntu_mac
uses: eProsima/eProsima-CI/ubuntu/colcon_test@main
if: runner.os == 'Linux' || runner.os == 'macOS'
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
colcon_test_args: ${{ inputs.colcon_test_args }}
colcon_test_args_default: ${{ inputs.colcon_test_args_default }}
ctest_args: ${{ inputs.ctest_args }}
ctest_args_default: ${{ inputs.ctest_args_default }}
packages_names: ${{ inputs.packages_names }}
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
test_report_artifact: ${{ inputs.test_report_artifact }}
- name: Run in windows
id: test_windows
uses: eProsima/eProsima-CI/windows/colcon_test@main
if: runner.os == 'Windows'
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
colcon_test_args: ${{ inputs.colcon_test_args }}
colcon_test_args_default: ${{ inputs.colcon_test_args_default }}
ctest_args: ${{ inputs.ctest_args }}
ctest_args_default: ${{ inputs.ctest_args_default }}
packages_names: ${{ inputs.packages_names }}
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
test_report_artifact: ${{ inputs.test_report_artifact }}