Skip to content

Commit 9e30772

Browse files
committed
add CI files
1 parent 65ed7f5 commit 9e30772

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.github/workflows/lint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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-noble-ros-rolling-ros-base-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
linter: [copyright, xmllint, cpplint, uncrustify, pep257, flake8]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: ros-tooling/[email protected]
18+
with:
19+
linter: ${{ matrix.linter }}
20+
distribution: rolling
21+
package-name: |
22+
nav2_minimal_tb3_sim
23+
nav2_minimal_tb4_description
24+
nav2_minimal_tb4_sim

.github/workflows/test.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
RMW_IMPLEMENTATION: rmw_cyclonedds_cpp
14+
container:
15+
image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
ros_distro: [rolling]
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Install Cyclone DDS
23+
run: sudo apt install ros-${{ matrix.ros_distro }}-rmw-cyclonedds-cpp -y
24+
- name: Build and run tests
25+
id: action-ros-ci
26+
uses: ros-tooling/[email protected]
27+
with:
28+
import-token: ${{ secrets.GITHUB_TOKEN }}
29+
target-ros2-distro: ${{ matrix.ros_distro }}
30+
- uses: actions/upload-artifact@v1
31+
with:
32+
name: colcon-logs
33+
path: ros_ws/log

0 commit comments

Comments
 (0)