Support services #36
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: [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 |