RSDK-3531 - Motion service wrappers #601
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: cpp-linter | |
on: pull_request | |
jobs: | |
cpp-linter: | |
if: github.repository_owner == 'viamrobotics' | |
runs-on: [self-hosted, x64] | |
container: | |
image: ghcr.io/viamrobotics/canon:amd64 | |
steps: | |
- name: Checkout PR/Push/Workflow Dispatch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: install clang-format | |
run: sudo apt install -y clang-format | |
- name: verify no uncommitted changes | |
run: | | |
git init | |
git add . | |
chown -R testbot . | |
sudo -u testbot bash -lc 'sh ./bin/run-clang-format.sh' | |
GEN_DIFF=$(git status -s) | |
if [ -n "$GEN_DIFF" ]; then | |
echo 'linting resulted in changes not in git' 1>&2 | |
git status | |
exit 1 | |
fi |