set default path variables #24
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: Lint | |
on: | |
push: | |
branches: [main, release-*] | |
pull_request: | |
branches: [main, release-*] | |
jobs: | |
lint: | |
name: CPP Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install clang-format | |
run: sudo apt-get install -y clang-format | |
- name: Run clang-format | |
run: | | |
find . -iname *.h -o -iname *.cpp | xargs clang-format -i | |
- name: Check for changes | |
run: | | |
if ! git diff --exit-code; then | |
echo "Code style issues found" | |
git diff | |
exit 1 | |
fi |