Merge pull request #2409 #984
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: quality-checks | |
| on: | |
| pull_request: | |
| paths: | |
| - '**/*.cpp' | |
| - '**/*.hpp' | |
| - '**/*.md' | |
| - '**/*.txt' | |
| - '**/CMakeLists.txt' | |
| - 'cmake/**' | |
| - '.github/workflows/**' | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| posix-text-files: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: posix-text-files | |
| run: python3 scripts/check-posix-text-files.py "$GITHUB_WORKSPACE" | |
| code-formatting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install clang-format | |
| run: sudo pip install --break-system-package clang-format==22.1.5 | |
| - name: Run clang-format | |
| run: find libcaf* -name '*.[ch]pp' | xargs clang-format --dry-run --Werror | |
| spell-checking: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: spell-checking | |
| uses: crate-ci/typos@master | |
| with: | |
| config: .typos-config.toml | |
| forbidden-includes: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: forbidden-includes | |
| run: | | |
| find libcaf_* -name '*hpp' -type f | grep -v 'caf/internal/' | xargs python3 scripts/forbidden-includes-check.py | |
| type-id-block-offsets: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: type-id-block-offsets | |
| run: python3 scripts/get-next-free-block-offset.py 1>/dev/null && echo OK | |