Skip to content

Commit

Permalink
🔨 Fixing failing CI.
Browse files Browse the repository at this point in the history
Signed-off-by: Bey Hao Yun <[email protected]>
  • Loading branch information
cardboardcode committed Mar 17, 2024
1 parent c1946d7 commit 2f7cc2c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/industrial_ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@ jobs:
- uses: 'ros-industrial/industrial_ci@master'
env: ${{matrix.env}}

- name: Install ROS 2 dependencies (modify as needed)
- name: Install ROS 2
run: |
pip install colcon-common-extensions
- name: Setup ROS 2 environment (modify as needed)
- name: Setup ROS 2 environment
run: |
sudo apt install -y ros-humble-desktop && \
source /opt/ros/humble/setup.bash
- name: Build your ROS 2 package (modify as needed)
- name: Build your ROS 2 package
run: |
colcon build --symlink-install --cmake-args \
-DCMAKE_CXX_FLAGS='-fprofile-arcs -ftest-coverage' \
-DCMAKE_C_FLAGS='-fprofile-arcs -ftest-coverage'
- name: Run ROS 2 unit tests with coverage (modify as needed)
- name: Run ROS 2 unit tests with coverage
run: |
colcon lcov-result --initial && \
colcon test --packages-select virtual_camera
colcon test --packages-select virtual_camera && \
colcon lcov-result
- name: Coveralls GitHub Action
Expand Down

0 comments on commit 2f7cc2c

Please sign in to comment.