styling tweaks #850
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: [ master ] | |
types: [ closed ] | |
push: | |
branches-ignore: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
container: robojackets/urc-baseimage:humble | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
path: colcon_ws/src/urc-software | |
- name: Update Dependencies | |
shell: bash | |
run: | | |
source /opt/ros/humble/setup.bash | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
- name: Build | |
shell: bash | |
working-directory: colcon_ws | |
run: | | |
source /opt/ros/humble/setup.bash | |
rosdep update | |
rosdep install --from-paths src --ignore-src -r -y | |
colcon build | |
test: | |
name: Test | |
needs: build | |
runs-on: ubuntu-22.04 | |
container: robojackets/urc-baseimage:humble | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
path: colcon_ws/src/urc-software | |
- name: Update Dependencies | |
shell: bash | |
run: | | |
source /opt/ros/humble/setup.bash | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
- name: Colcon Test | |
shell: bash | |
working-directory: colcon_ws | |
run: | | |
source /opt/ros/humble/setup.bash | |
rosdep update | |
rosdep install --from-paths src --ignore-src -r -y | |
colcon build && colcon test && colcon test-result --verbose | |
cpp_linting: | |
name: C++ Linting | |
runs-on: ubuntu-22.04 | |
container: robojackets/urc-baseimage:humble | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Run Uncrustify | |
shell: bash | |
run: | | |
source /opt/ros/humble/setup.bash | |
touch external/AMENT_IGNORE | |
ament_uncrustify -c ament_code_style.cfg | |
python_linting: | |
name: Python Linting | |
runs-on: ubuntu-22.04 | |
container: robojackets/urc-baseimage:humble | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Run flake8 | |
shell: bash | |
run: | | |
source /opt/ros/humble/setup.bash | |
ament_flake8 --exclude external | |
build_linting: | |
name: Build Linting | |
runs-on: ubuntu-22.04 | |
container: robojackets/urc-baseimage:humble | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Run xmllint | |
shell: bash | |
run: | | |
source /opt/ros/humble/setup.bash | |
ament_xmllint --exclude external | |
- name: Run ament_lint_cmake | |
shell: bash | |
run: | | |
source /opt/ros/humble/setup.bash | |
touch external/AMENT_IGNORE | |
ament_lint_cmake |