- - name: Run clang-tidy
- run: sh .ci/tidy/run.sh
- if: always()
-
- - name: Check code formatting
- run: "! astyle --exclude=build -r --options=.astylerc --dry-run --formatted '*.c' '*.h' | grep '^Formatted'"
- if: always()
-
- - name: Check scripts formatting
- run: find -type f -regextype egrep -regex '.+\.(sh|sh\.in|test)$' -exec ~/shfmt -d -i 2 -s '{}' +
- if: always()
-
- - name: Run static analysis on scripts
- run: find -type f -regextype egrep -regex '.+\.sh(\.in)?$' -exec shellcheck -x '{}' +
- if: always()
-
- - name: Run static analysis on tests
- run: find -type f -name '*.test' -execdir shellcheck -x '{}' +
+ - name: Lint/typecheck/check formatting on C/shell/Python code
+ run: |
+ . /tmp/venv/bin/activate
+ PATH=$PATH:$HOME ./lint.py