Skip to content

Support services

Support services #36

Workflow file for this run

name: CI
on: [push]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install system packages
run: sudo apt-get install -y librcutils-dev librcpputils-dev libfastcdr-dev
- name: Install stable rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
toolchain: stable
- name: Clone ros deps
run: ./set-up-tree-for-development.sh
- name: Clippy
working-directory: modality-ros-hook
run: cargo clippy --all-features -- -W clippy::all -D warnings
- name: Format
working-directory: modality-ros-hook
run: cargo fmt --all -- --check
- name: Doc Generation
working-directory: modality-ros-hook
run: cargo doc --workspace --bins --examples --all-features --no-deps
- name: Test
working-directory: modality-ros-hook
run: cargo test --all-features -- --test-threads=1
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker build
run: ./build-in-docker.sh