Migrate to Jazzy #193
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: style | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
docker_image: ['ros:jazzy-ros-base'] | |
container: | |
image: ${{ matrix.docker_image }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
# TODO(luca) reintroduce after formatting | |
#- name: uncrustify | |
# run: | | |
# sudo apt update && sudo apt install -y ros-jazzy-rmf-utils | |
# /ros_entrypoint.sh ament_uncrustify -c /opt/ros/jazzy/share/rmf_utils/rmf_code_style.cfg . --language C++ --exclude nexus_endpoints/nexus_endpoints.hpp | |
- name: pycodestyle | |
run: | | |
sudo apt update && sudo apt install -y pycodestyle curl | |
pycodestyle nexus_network_configuration/ | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@1.75 | |
with: | |
components: clippy, rustfmt | |
- name: rustfmt | |
run: | | |
rustfmt --check --edition 2021 nexus_workcell_editor/src/main.rs |