mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-30 09:58:00 +02:00
chore: organize and parallelize some checks
This commit is contained in:
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
with:
|
||||
packages: "shellcheck"
|
||||
version: 1.0
|
||||
- run: find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck
|
||||
- run: git ls-files "*.sh" "*/PKGBUILD" | xargs shellcheck --shell=bash
|
||||
|
||||
clangcheck:
|
||||
name: Clang
|
||||
|
8
Makefile
8
Makefile
@@ -134,10 +134,12 @@ install-service-s6-etc:
|
||||
|
||||
pre-commit:
|
||||
codespell
|
||||
prettier --write "**/*.md"
|
||||
find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck
|
||||
prettier -c "**/*.md"
|
||||
git ls-files "*.sh" "*/PKGBUILD" | xargs shellcheck --shell=bash
|
||||
clang-format -i $$(git ls-files "*.c" "*.h")
|
||||
clang-tidy -p . $$(git ls-files "*.c" "*.h")
|
||||
git ls-files -z "*.h" | \
|
||||
parallel -j$$(nproc) -q0 --no-notice --will-cite --tty clang-tidy --quiet |& \
|
||||
grep -v "warnings generated." || true
|
||||
|
||||
print-version:
|
||||
@echo $(VERSION)
|
||||
|
Reference in New Issue
Block a user