feat(cluster): support --monitor-input with --cluster-mode #269
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Style | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| cpp-format-check: | |
| name: C++ Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install clang-format | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-format | |
| - name: Check C++ formatting | |
| run: | | |
| # Find all C++ source files | |
| CPP_FILES=$(find . -name "*.cpp" -o -name "*.h" | grep -v deps/ | grep -v autom4te.cache/ | sort) | |
| # Check formatting (dry-run) | |
| FAILED=0 | |
| for file in $CPP_FILES; do | |
| if ! clang-format --dry-run --Werror "$file" 2>/dev/null; then | |
| echo "::error file=$file::File needs formatting: $file" | |
| FAILED=1 | |
| fi | |
| done | |
| if [ $FAILED -eq 1 ]; then | |
| echo "" | |
| echo "Some files need formatting. Run locally:" | |
| echo " make format" | |
| exit 1 | |
| fi | |
| echo "All C++ files are properly formatted!" | |