Skip to content

Commit 24a5123

Browse files
committed
annotate the clang-tidy count warning for the github workflow job
1 parent 100b30c commit 24a5123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/clang-tidy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595

9696
- name: Count warnings
9797
run: |
98+
clang-tidy --version
9899
COUNT=$(grep -c "warning:" clang-tidy.log)
99100
echo "clang-tidy reported ${COUNT} warning(s)"
100101
readonly WARNING_LIMIT=216
@@ -104,6 +105,6 @@ jobs:
104105
exit 1
105106
# WARN in annotations if COUNT > 0
106107
elif [ $COUNT -gt 0 ] ; then
107-
echo "clang-tidy reported ${COUNT} warning(s)"
108+
echo "::warning::clang-tidy reported ${COUNT} warning(s)"
108109
fi
109110

0 commit comments

Comments
 (0)