Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support rolling CI #85

Merged
merged 4 commits into from
May 22, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is a format job. Pre-commit has a first-party GitHub action, so we use
# that: https://github.com/pre-commit/action

name: Format
name: Formatting (pre-commit)

on:
workflow_dispatch:
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/industrial_ci_action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)

name: BuildAndTest
name: Build and Test

on: [push, pull_request]
on:
workflow_dispatch:
pull_request:
push:
branches:
- ros2

jobs:
industrial_ci:
Expand All @@ -12,16 +17,26 @@ jobs:
env:
- {
ROS_DISTRO: foxy, ROS_REPO: main, CCOV_UPLOAD: true,
CLANG_TIDY: pedatntic,
CLANG_TIDY: pedantic,
CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='--coverage' -DCMAKE_CXX_FLAGS='--coverage'",
AFTER_RUN_TARGET_TEST: './.ci.prepare_codecov',
ADDITIONAL_DEBS: 'lcov'
}
- {ROS_DISTRO: foxy, ROS_REPO: testing, CCOV_UPLOAD: false}
- {
ROS_DISTRO: rolling, ROS_REPO: main, CCOV_UPLOAD: true,
CLANG_TIDY: pedantic,
CMAKE_ARGS: "-DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='--coverage' -DCMAKE_CXX_FLAGS='--coverage'",
AFTER_RUN_TARGET_TEST: './.ci.prepare_codecov',
ADDITIONAL_DEBS: 'lcov'
}
- {ROS_DISTRO: rolling, ROS_REPO: testing, CCOV_UPLOAD: false}
env:
CCACHE_DIR: /home/runner/.ccache
BASEDIR: .base
BEFORE_RUN_TARGET_TEST: "sudo apt-get -qq install -y locales; sudo locale-gen nl_NL.UTF-8"

name: ${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}${{ matrix.env.CCOV_UPLOAD && ' + ccov' || ''}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Includes a cpp and a python parser, as well as a cpp writer.

## GitHub Actions - Continuous Integration

[![Format](https://github.com/ros-planning/srdfdom/actions/workflows/format.yml/badge.svg?branch=ros2)](https://github.com/ros-planning/srdfdom/actions/workflows/format.yml?branch=ros2) [![BuildAndTest](https://github.com/ros-planning/srdfdom/actions/workflows/industrial_ci_action.yml/badge.svg?branch=ros2)](https://github.com/ros-planning/srdfdom/actions/workflows/industrial_ci_action.yml?branch=ros2) [![codecov](https://codecov.io/gh/ros-planning/srdfdom/branch/ros2/graph/badge.svg?token=W7uHKcY0ly)](https://codecov.io/gh/ros-planning/srdfdom)
[![Formatting(pre-commit)](https://github.com/ros-planning/srdfdom/actions/workflows/format.yml/badge.svg?branch=ros2)](https://github.com/ros-planning/srdfdom/actions/workflows/format.yml?query=branch%3Aros2) [![BuildAndTest](https://github.com/ros-planning/srdfdom/actions/workflows/industrial_ci_action.yml/badge.svg?branch=ros2)](https://github.com/ros-planning/srdfdom/actions/workflows/industrial_ci_action.yml?query=branch%3Aros2) [![codecov](https://codecov.io/gh/ros-planning/srdfdom/branch/ros2/graph/badge.svg?token=W7uHKcY0ly)](https://codecov.io/gh/ros-planning/srdfdom)

[![Code Coverage Grid](https://codecov.io/gh/ros-planning/srdfdom/branch/ros2/graphs/tree.svg)](https://codecov.io/gh/ros-planning/srdfdom/branch/ros2/graphs/tree.svg)

Expand Down