Skip to content

🔨 Forcing CI to do coveralls_ci_action.yml workflow. #5

🔨 Forcing CI to do coveralls_ci_action.yml workflow.

🔨 Forcing CI to do coveralls_ci_action.yml workflow. #5

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 && \

Check failure on line 15 in .github/workflows/coveralls_ci_action.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/coveralls_ci_action.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
sudo apt install software-properties-common && \
sudo add-apt-repository universe && \
sudo apt update && sudo apt install curl -y && \
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null && \
sudo apt install ros-humble-ros-base && \
pip install colcon-common-extensions
- 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/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
coveralls-file: ./lcov/total_coverage.info