Skip to content

🔨 Fixing failing CI. #6

🔨 Fixing failing CI.

🔨 Fixing failing CI. #6

name: Coveralls CI
on: [push, pull_request]
jobs:
industrial_ci:
strategy:
matrix:
env:
- {ROS_DISTRO: humble, ROS_REPO: main}
runs-on: ubuntu-latest
steps:
- 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
run: |
colcon lcov-result --initial && \
colcon test --packages-select virtual_camera && \
colcon lcov-result
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
coveralls-file: ./lcov/total_coverage.info