Unverified Commit b87930d4 authored by Denis Štogl's avatar Denis Štogl
Browse files

Add support for GitHub actions

parent 02ada99e
name: Lint ros2_control_demos
on:
pull_request:
jobs:
ament_copyright:
name: ament_copyright
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: ros-tooling/setup-ros@0.0.13
- uses: ros-tooling/action-ros-lint@0.0.5
with:
linter: copyright
package-name: ros2_control_demo_communication_gazebo ros2_control_demo_communication_headless ros2_control_demo_hardware ros2_control_demo_robot
ament_xmllint:
name: ament_xmllint
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: ros-tooling/setup-ros@0.0.13
- uses: ros-tooling/action-ros-lint@0.0.5
with:
linter: xmllint
package-name: ros2_control_demo_communication_gazebo ros2_control_demo_communication_headless ros2_control_demo_hardware ros2_control_demo_robot
ament_lint_cpp:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
linter: [cppcheck, cpplint, uncrustify]
steps:
- uses: actions/checkout@v1
- uses: ros-tooling/setup-ros@0.0.13
- uses: ros-tooling/action-ros-lint@0.0.5
with:
linter: ${{ matrix.linter }}
package-name: ros2_control_demo_communication_gazebo ros2_control_demo_communication_headless ros2_control_demo_hardware ros2_control_demo_robot
name: Test ros2_control_demos
on:
pull_request:
push:
branches:
- master
schedule:
# Run every morning to detect flakiness and broken dependencies
- cron: '17 8 * * *'
jobs:
build_and_test:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
steps:
- uses: ros-tooling/setup-ros@0.0.13
- uses: ros-tooling/action-ros-ci@0.0.13
with:
package-name: ros2_control_demo_communication_gazebo ros2_control_demo_communication_headless ros2_control_demo_hardware ros2_control_demo_robot
colcon-mixin-name: coverage-gcc
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ros_ws/lcov/total_coverage.info
flags: unittests
name: codecov-umbrella
yml: ./codecov.yml
fail_ci_if_error: true
- uses: actions/upload-artifact@master
with:
name: colcon-logs-${{ matrix.os }}
path: ros_ws/log
fixes:
- "ros_ws/src/ros2_control_demos/::"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment