The sixth batch
[git.git] / .github / workflows / check-style.yml
blobc052a5df2381e90a4763d0f9c3797a1adffb347d
1 name: check-style
3 # Get the repository with all commits to ensure that we can analyze
4 # all of the commits contributed via the Pull Request.
6 on:
7   pull_request:
8     types: [opened, synchronize]
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
16 jobs:
17   check-style:
18     env:
19       CC: clang
20       jobname: ClangFormat
21     runs-on: ubuntu-latest
22     steps:
23     - uses: actions/checkout@v4
24       with:
25         fetch-depth: 0
27     - run: ci/install-dependencies.sh
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}}"