-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (70 loc) · 2.2 KB
/
integration.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
# runs on any merge, verifies ros2 package can be built, tests run
name: Integration Pipeline
run-name: Integration pipeline triggered by ${{ github.actor }}
on:
workflow_call:
inputs:
delivery:
required: false
type: boolean
default: true
deployment:
required: false
type: boolean
default: true
# pull_request:
workflow_dispatch:
inputs:
delivery:
description: 'Would you like to update the official image?'
required: false
default: true
type: boolean
deployment:
description: 'Would you like to run unit and benchmarking tests?'
required: false
default: true
type: boolean
jobs:
inputs:
- name: Print inputs
run: |
echo ${{ github.event.inputs.delivery }}
echo ${{ inputs.delivery }}
echo ${{ github.event.inputs.deployment }}
echo ${{ inputs.deployment }}
build:
- name: Compile
run: |
source /opt/ros/humble/setup.bash
cd /ros2_ws
rosdep install --from-paths src -y --ignore-src
colcon build --event-handlers console_cohesion+ --symlink-install
test:
- name: Run tests
needs: build
run: |
source /opt/ros/humble/setup.bash
cd /ros2_ws
source install/setup.bash
colcon test --event-handlers console_cohesion+
colcon test-result --verbose
# should pipe into markdown and display report...
# These are only triggered through workflow dispatch
delivery:
if: ${{ github.event.inputs.delivery }}
steps:
- run: echo "this was detected successfully as a boolean (delivery)"
# uses: ./.github/workflows/delivery.yml
# with:
# branch: {{ github.head_ref }}
# deployment: {{ github.events.inputs.deployment }}
deployment:
if: ${{ inputs.deployment }}
steps:
- run: echo "this was detected successfully as boolean (deployment)"
# needs: delivery
# uses: ./.github/workflows/deployment.yml
# with:
# container_branch: {{ github.head_ref }}
# container_version: {{ needs.delivery.outputs.version }}