File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 4545 curl -Os https://uploader.codecov.io/latest/linux/codecov
4646 chmod +x codecov
4747 ./codecov -t ${CODECOV_TOKEN}
48- - if : github.ref == 'refs/heads/main'
49- name : Test hooks
48+ - name : Test hooks
5049 run : |
5150 pip install pre-commit
5251 pre-commit install
53- pre-commit try-repo .
52+ pre-commit try-repo . -c testing/.pre-commit-config.yaml --files testing/main.c | tee result.txt || true
53+ grep -e "Failed" result.txt
54+ if [ $? -ne 0 ]; then
55+ exit 1
56+ fi
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/cpp-linter/cpp-linter-hooks
3+ rev :
4+ hooks :
5+ - id : clang-format
6+ args : [--style=file] # to load .clang-format
7+ - id : clang-tidy
8+ args : [--checks=.clang-tidy] # path/to/.clang-tidy
You can’t perform that action at this time.
0 commit comments