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 45
45
curl -Os https://uploader.codecov.io/latest/linux/codecov
46
46
chmod +x codecov
47
47
./codecov -t ${CODECOV_TOKEN}
48
- - if : github.ref == 'refs/heads/main'
49
- name : Test hooks
48
+ - name : Test hooks
50
49
run : |
51
50
pip install pre-commit
52
51
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