mirror of
https://github.com/johndoe6345789/WizardMerge.git
synced 2026-04-24 13:44:55 +00:00
Fix linting jobs to properly fail on errors
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
||||
# Run clang-format in check mode (dry-run)
|
||||
find backend frontends/qt6 frontends/cli -name "*.cpp" -o -name "*.h" -o -name "*.hpp" | \
|
||||
xargs clang-format --dry-run --Werror || \
|
||||
(echo "C++ code formatting issues found. Run 'clang-format -i' on the files." && exit 0)
|
||||
(echo "❌ C++ code formatting issues found. Run 'clang-format -i' on the files." && exit 1)
|
||||
else
|
||||
echo "No C++ files found to check."
|
||||
fi
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
working-directory: frontends/nextjs
|
||||
run: |
|
||||
# Run TypeScript compiler check
|
||||
bun run tsc --noEmit || echo "TypeScript check completed with warnings"
|
||||
bun run tsc --noEmit
|
||||
|
||||
lint-python:
|
||||
name: Lint Python Code
|
||||
@@ -79,7 +79,7 @@ jobs:
|
||||
# Check if there are any Python files
|
||||
if find scripts -name "*.py" | grep -q .; then
|
||||
echo "Linting Python code..."
|
||||
ruff check scripts/ || echo "Linting completed with warnings"
|
||||
ruff check scripts/
|
||||
else
|
||||
echo "No Python files found to lint."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user