Skip to content

Commit

Permalink
Added jazzy CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
matteodv99tn committed Nov 21, 2024
1 parent f12ec8a commit 27914b7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:


jobs:
workspace-build:
humble-build-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout the code
Expand All @@ -24,6 +24,27 @@ jobs:
- name: Build the workspace
uses: ichiro-its/ros2-ws-action/[email protected]

- name: Test the workspace
run: |
source install/setup.bash
colcon test --return-code-on-test-failure
jazzy-build-tests:
runs-on: ubuntu-24.04
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
path: workspace

- name: Setup ROS2 workspace
uses: ichiro-its/ros2-ws-action/[email protected]
with:
distro: jazzy

- name: Build the workspace
uses: ichiro-its/ros2-ws-action/[email protected]

- name: Test the workspace
run: |
source install/setup.bash
Expand Down
2 changes: 1 addition & 1 deletion src/unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int a_complex_function(int x) { return 2*x; }


TEST(cpp_publisher_subscriber, useless_test) {
ASSERT_EQ(a_complex_function(2), 5);
ASSERT_EQ(a_complex_function(2), 4);
}

int main(int argc, char** argv) {
Expand Down

0 comments on commit 27914b7

Please sign in to comment.