🔨 Fixing failing CI. #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Install ROS 2 | ||
run: | | ||
sudo apt-get update | ||
- 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 |