Skip to content

Commit

Permalink
adding github workflow actions (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski committed Nov 11, 2023
1 parent f3fb599 commit ac2f824
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint
on:
pull_request:

jobs:
ament_lint_general:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-focal-ros-iron-ros-base-latest
strategy:
fail-fast: false
matrix:
linter: [copyright, xmllint, cppcheck, cpplint, uncrustify, pep257, flake8]
steps:
- uses: actions/checkout@v2
- uses: ros-tooling/action-ros-lint@v0.1
with:
linter: ${{ matrix.linter }}
distribution: iron
package-name: |
opennav_coverage
opennav_coverage_bt
opennav_coverage_demo
opennav_coverage_msgs
opennav_coverage_navigator
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on:
pull_request:
push:
branches:
- main

jobs:
build_and_test:
runs-on: ubuntu-latest
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
strategy:
fail-fast: false
matrix:
ros_distro: [iron]
steps:
- name: Build and run tests
id: action-ros-ci
uses: ros-tooling/action-ros-ci@v0.3
with:
import-token: ${{ secrets.GITHUB_TOKEN }}
target-ros2-distro: ${{ matrix.ros_distro }}
- uses: actions/upload-artifact@v1
with:
name: colcon-logs
path: ros_ws/log

0 comments on commit ac2f824

Please sign in to comment.