Add clang-format check for PR diff to CI
#14
Workflow file for this run
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: static-analysis | |
| on: | |
| pull_request: | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch full history for branches | |
| - name: Fetch the main branch | |
| run: git fetch origin main:refs/remotes/origin/main | |
| - name: Check code formatting with clang-format against main | |
| run: scripts/tools/check-format.sh --branch remotes/origin/main |