Skip to content

Commit 2b99d6c

Browse files
committed
Add generator tests to CI
1 parent aa2f75d commit 2b99d6c

File tree

2 files changed

+124
-0
lines changed

2 files changed

+124
-0
lines changed

.github/workflows/ci.yml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,123 @@ jobs:
3737
clearpath_gz
3838
clearpath_simulator
3939
vcs-repo-file-url: dependencies.repos
40+
41+
clearpath_simulator_src_head_ci:
42+
name: Jazzy Clearpath Source with Head Branch
43+
runs-on: ubuntu-latest
44+
container:
45+
image: rostooling/setup-ros-docker:ubuntu-noble-latest
46+
steps:
47+
- uses: actions/checkout@v3
48+
- name: "[Repositories Updater] Checkout action"
49+
uses: actions/checkout@v3
50+
with:
51+
repository: clearpathrobotics/repos-dep-update-action
52+
ref: 0.0.4
53+
path: repos-dep-update-action
54+
- name: "[Repositories Updater] Install dependencies"
55+
run: |
56+
apt-get update
57+
apt-get install -y jq git python3 python3-pip
58+
python3 -m pip install yq --break-system-packages
59+
- name: "[Repositories Updater] Extract branch name"
60+
shell: bash
61+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
62+
id: extract_branch
63+
- name: "[Repositories Updater] Run action"
64+
uses: ./repos-dep-update-action/
65+
with:
66+
branch: ${{ steps.extract_branch.outputs.branch }}
67+
input: dependencies.repos
68+
output: updated_dependencies.repos
69+
- name: "[Repositories Updater] Print updated dependencies"
70+
run: |
71+
cat updated_dependencies.repos
72+
- uses: ros-tooling/action-ros-ci@v0.3
73+
id: action_ros_ci_step
74+
with:
75+
target-ros2-distro: jazzy
76+
package-name: |
77+
clearpath_generator_gz
78+
clearpath_gz
79+
clearpath_simulator
80+
vcs-repo-file-url: updated_dependencies.repos
81+
82+
clearpath_simulator_src_base_ci:
83+
name: Jazzy Clearpath Source with Base Branch
84+
runs-on: ubuntu-latest
85+
container:
86+
image: rostooling/setup-ros-docker:ubuntu-noble-latest
87+
steps:
88+
- uses: actions/checkout@v3
89+
- name: "[Repositories Updater] Checkout action"
90+
uses: actions/checkout@v3
91+
with:
92+
repository: clearpathrobotics/repos-dep-update-action
93+
ref: 0.0.4
94+
path: repos-dep-update-action
95+
- name: "[Repositories Updater] Install dependencies"
96+
run: |
97+
apt-get update
98+
apt-get install -y jq git python3 python3-pip
99+
python3 -m pip install yq --break-system-packages
100+
- name: "[Repositories Updater] Run action"
101+
uses: ./repos-dep-update-action/
102+
with:
103+
branch: ${{ github.event.pull_request.base.ref }}
104+
input: dependencies.repos
105+
output: updated_dependencies.repos
106+
- name: "[Repositories Updater] Print updated dependencies"
107+
run: |
108+
cat updated_dependencies.repos
109+
- uses: ros-tooling/action-ros-ci@v0.3
110+
id: action_ros_ci_step
111+
with:
112+
target-ros2-distro: jazzy
113+
package-name: |
114+
clearpath_generator_gz
115+
clearpath_gz
116+
clearpath_simulator
117+
vcs-repo-file-url: updated_dependencies.repos
118+
119+
clearpath_generator_tests_ci:
120+
name: Jazzy Clearpath Source with Head Branch Generator Tests
121+
runs-on: ubuntu-latest
122+
container:
123+
image: rostooling/setup-ros-docker:ubuntu-noble-latest
124+
steps:
125+
- uses: actions/checkout@v3
126+
- name: "[Repositories Updater] Checkout action"
127+
uses: actions/checkout@v3
128+
with:
129+
repository: clearpathrobotics/repos-dep-update-action
130+
ref: 0.0.4
131+
path: repos-dep-update-action
132+
- name: "[Repositories Updater] Install dependencies"
133+
run: |
134+
apt-get update
135+
apt-get install -y jq git python3 python3-pip
136+
python3 -m pip install yq --break-system-packages
137+
- name: "[Repositories Updater] Extract branch name"
138+
shell: bash
139+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
140+
id: extract_branch
141+
- name: "[Repositories Updater] Run action"
142+
uses: ./repos-dep-update-action/
143+
with:
144+
branch: ${{ steps.extract_branch.outputs.branch }}
145+
input: dependencies.repos
146+
output: updated_dependencies.repos
147+
- name: "[Repositories Updater] Print updated dependencies"
148+
run: |
149+
cat updated_dependencies.repos
150+
- uses: ros-tooling/action-ros-ci@v0.3
151+
id: action_ros_ci_step
152+
with:
153+
target-ros2-distro: jazzy
154+
package-name: |
155+
clearpath_generator_gz
156+
clearpath_gz
157+
clearpath_simulator
158+
clearpath_generator_gz_tests
159+
vcs-repo-file-url: updated_dependencies.repos

dependencies.repos

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ repositories:
1111
type: git
1212
url: https://github.com/clearpathrobotics/clearpath_msgs.git
1313
version: jazzy
14+
clearpath_generator_tests:
15+
type: git
16+
url: https://github.com/clearpathrobotics/clearpath_generator_tests.git
17+
version: jazzy

0 commit comments

Comments
 (0)