Skip to content

Commit ac2f824

Browse files
adding github workflow actions (open-navigation#27)
1 parent f3fb599 commit ac2f824

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
ament_lint_general:
7+
name: ament_${{ matrix.linter }}
8+
runs-on: ubuntu-latest
9+
container:
10+
image: rostooling/setup-ros-docker:ubuntu-focal-ros-iron-ros-base-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
linter: [copyright, xmllint, cppcheck, cpplint, uncrustify, pep257, flake8]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: ros-tooling/action-ros-lint@v0.1
18+
with:
19+
linter: ${{ matrix.linter }}
20+
distribution: iron
21+
package-name: |
22+
opennav_coverage
23+
opennav_coverage_bt
24+
opennav_coverage_demo
25+
opennav_coverage_msgs
26+
opennav_coverage_navigator

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_and_test:
10+
runs-on: ubuntu-latest
11+
env:
12+
ROS_DISTRO: ${{ matrix.ros_distro }}
13+
container:
14+
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
ros_distro: [iron]
19+
steps:
20+
- name: Build and run tests
21+
id: action-ros-ci
22+
uses: ros-tooling/action-ros-ci@v0.3
23+
with:
24+
import-token: ${{ secrets.GITHUB_TOKEN }}
25+
target-ros2-distro: ${{ matrix.ros_distro }}
26+
- uses: actions/upload-artifact@v1
27+
with:
28+
name: colcon-logs
29+
path: ros_ws/log

0 commit comments

Comments
 (0)