Skip to content

Commit

Permalink
Add GitHub CI config
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard committed Jul 26, 2021
1 parent 1c206c7 commit 9c0b367
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
build-type: binary
- os: ubuntu-20.04
build-type: source
- os: macos-latest
build-type: source
steps:
- uses: actions/checkout@v2
- uses: ros-tooling/setup-ros@master
with:
required-ros-distributions: ${{ matrix.build-type == 'binary' && 'rolling' || '' }}
- name: Install LTTng
run: |
sudo apt-get update
sudo apt-get install -q -y lttng-tools liblttng-ust-dev python3-lttng python3-babeltrace python3-pandas
if: startsWith(matrix.os, 'ubuntu-')
- uses: ros-tooling/action-ros-ci@master
with:
package-name: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
target-ros2-distro: rolling
vcs-repo-file-url: ${{ matrix.build-type == 'source' && 'https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos' || '' }}
colcon-defaults: |
{
"build": {
"mixin": [
"coverage-gcc",
"coverage-pytest"
]
},
"test": {
"mixin": [
"coverage-pytest"
]
}
}
- uses: codecov/codecov-action@v1
with:
files: ros_ws/lcov/total_coverage.info,ros_ws/coveragepy/.coverage
name: codecov-umbrella
21 changes: 21 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: DCO
on:
pull_request:
push:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Check DCO
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip3 install -U dco-check
dco-check --verbose
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fixes:
- "/builds/ros-tracing/ros2_tracing/::"
- "/builds/ros-tracing/ros2_tracing/install/tracetools/::tracetools/"
- "/home/runner/work/ros2_tracing/ros2_tracing/ros_ws/src/ros2_tracing/::"
- "/home/runner/work/ros2_tracing/ros2_tracing/ros_ws/install/tracetools/::tracetools/"

0 comments on commit 9c0b367

Please sign in to comment.