tests: clamp the level-meter window to the buffer (ASan container-ove… #213
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: Tap House Style | |
| # Enforces the shared Tap House Rules. clang-format is already checked in | |
| # ci.yml; this adds (1) a drift check against the canonical TapHouse configs | |
| # and (2) clang-tidy naming + mandatory-braces enforcement. | |
| on: [push, pull_request] | |
| jobs: | |
| drift: | |
| uses: tap/taphouse/.github/workflows/drift-check.yml@v5 | |
| with: | |
| ref: v5 | |
| clang-tidy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install tools | |
| run: sudo apt-get update && sudo apt-get install -y clang-tidy-18 cmake python3 | |
| - name: Configure (compile database) | |
| run: cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
| - name: clang-tidy (project TUs; third_party and fetched deps excluded) | |
| run: | | |
| files=$(python3 -c "import json; print('\n'.join(e['file'] for e in json.load(open('build/compile_commands.json')) if 'third_party' not in e['file'] and '_deps' not in e['file']))") | |
| fail=0 | |
| for f in $files; do | |
| out=$(clang-tidy-18 -p build "$f" 2>/dev/null || true) | |
| if echo "$out" | grep -qE "warning:|error:"; then echo "$out"; fail=1; fi | |
| done | |
| [ "$fail" -eq 0 ] && echo "clang-tidy clean." || { echo "::error::clang-tidy found violations"; exit 1; } |