@@ -49,14 +49,14 @@ jobs:
49
49
50
50
# "notify" me of newer clang-format version
51
51
if command -v clang-format-19 &> /dev/null; then
52
- echo " clang-format-19 is available"
52
+ echo ' clang-format-19 is available'
53
53
exit 2
54
54
fi
55
55
56
56
shopt -s nullglob
57
57
files=(src/*.c src/**/*.c include/*.h include/**/*.h)
58
58
if [[ "${#files[@]}" -eq 0 ]]; then
59
- echo " No files found"
59
+ echo ' No files found'
60
60
exit 1
61
61
fi
62
62
clang-format-18 --verbose --dry-run --Werror "${files[@]}"
67
67
68
68
# "notify" me of newer clang-tidy version
69
69
if command -v clang-tidy-19 &> /dev/null; then
70
- echo " clang-tidy-19 is available"
70
+ echo ' clang-tidy-19 is available'
71
71
exit 2
72
72
fi
73
73
@@ -83,14 +83,14 @@ jobs:
83
83
shopt -s nullglob
84
84
files=(src/*.c src/**/*.c include/*.h include/**/*.h)
85
85
if [[ "${#files[@]}" -eq 0 ]]; then
86
- echo " No files found"
86
+ echo ' No files found'
87
87
exit 1
88
88
fi
89
- clang-tidy-18 --warnings-as-errors="*" --extra-arg=" -I/usr/include/lua5.1" "${files[@]}"
90
- clang-tidy-18 --warnings-as-errors="*" --extra-arg=" -I/usr/include/lua5.2" "${files[@]}"
91
- clang-tidy-18 --warnings-as-errors="*" --extra-arg=" -I/usr/include/lua5.3" "${files[@]}"
92
- clang-tidy-18 --warnings-as-errors="*" --extra-arg=" -I/usr/include/lua5.4" "${files[@]}"
93
- clang-tidy-18 --warnings-as-errors="*" --extra-arg=" -I/usr/include/luajit-2.1" "${files[@]}"
89
+ clang-tidy-18 --warnings-as-errors='*' --extra-arg=' -I/usr/include/lua5.1' "${files[@]}"
90
+ clang-tidy-18 --warnings-as-errors='*' --extra-arg=' -I/usr/include/lua5.2' "${files[@]}"
91
+ clang-tidy-18 --warnings-as-errors='*' --extra-arg=' -I/usr/include/lua5.3' "${files[@]}"
92
+ clang-tidy-18 --warnings-as-errors='*' --extra-arg=' -I/usr/include/lua5.4' "${files[@]}"
93
+ clang-tidy-18 --warnings-as-errors='*' --extra-arg=' -I/usr/include/luajit-2.1' "${files[@]}"
94
94
95
95
- name : Set up Lua
96
96
uses : luarocks/gh-actions-lua@master
@@ -111,10 +111,10 @@ jobs:
111
111
# download and setup problem matcher for luacheck's visual_studio formatter
112
112
wget -q "https://raw.githubusercontent.com/ammaraskar/msvc-problem-matcher/${MSCV_PROBLEM_MATCHER_VERSION}/msvc_matcher.json" \
113
113
-O visual-studio-problem-matcher.json
114
- echo " ::add-matcher::visual-studio-problem-matcher.json"
114
+ echo ' ::add-matcher::visual-studio-problem-matcher.json'
115
115
116
116
# run luacheck
117
- luacheck . --no-cache --formatter visual_studio --include-files " spec/**/*.lua" " **/*.rockspec" --exclude-files .lua .luarocks
117
+ luacheck . --no-cache --formatter visual_studio --include-files ' spec/**/*.lua' ' **/*.rockspec' --exclude-files .lua .luarocks
118
118
119
119
120
120
test :
0 commit comments