Skip to content

Commit dc71a04

Browse files
committed
ci: add meson format checks
1 parent 8787d0f commit dc71a04

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/meson.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ jobs:
2121
pip install meson --break-system-packages
2222
2323
- name: Check Files
24-
run: git ls-files --exclude='meson.build' --exclude='meson.options' --exclude='meson_options.txt' --exclude='*.wrap' --ignored -c -z | xargs -0r meson format -i -c ./meson.format
24+
run: >
25+
git ls-files
26+
--exclude='meson.build'
27+
--exclude='meson.options'
28+
--exclude='meson_options.txt'
29+
--ignored -c -z | xargs -0r
30+
meson format --check-only -c ./meson.format
31+
|| echo "Not all meson files are formatted correctly"
32+
&& echo "All meson files are formatted correctly"
2533
2634
## TODO: use mesonlint from
2735
## https://github.com/JCWasmx86/mesonlsp

0 commit comments

Comments
 (0)