| 1 | name: check-style |
| 2 | |
| 3 | # Get the repository with all commits to ensure that we can analyze |
| 4 | # all of the commits contributed via the Pull Request. |
| 5 | |
| 6 | on: |
| 7 | pull_request: |
| 8 | types: [opened, synchronize] |
| 9 | |
| 10 | # Avoid unnecessary builds. Unlike the main CI jobs, these are not |
| 11 | # ci-configurable (but could be). |
| 12 | concurrency: |
| 13 | group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | cancel-in-progress: true |
| 15 | |
| 16 | jobs: |
| 17 | check-style: |
| 18 | env: |
| 19 | CC: clang |
| 20 | jobname: ClangFormat |
| 21 | runs-on: ubuntu-latest |
| 22 | steps: |
| 23 | - uses: actions/checkout@v6 |
| 24 | with: |
| 25 | fetch-depth: 0 |
| 26 | |
| 27 | - run: ci/install-dependencies.sh |
| 28 | |
| 29 | - name: git clang-format |
| 30 | continue-on-error: true |
| 31 | id: check_out |
| 32 | run: | |
| 33 | ./ci/run-style-check.sh \ |
| 34 | "${{github.event.pull_request.base.sha}}" |