| 1 |
# SPDX-FileCopyrightText: 2024 Emil Velikov <[email protected]> |
| 2 |
# |
| 3 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
|
| 5 |
name: Check code style with clang-format |
| 6 |
|
| 7 |
on: |
| 8 |
pull_request: |
| 9 |
branches: [master] |
| 10 |
|
| 11 |
permissions: |
| 12 |
contents: read |
| 13 |
|
| 14 |
jobs: |
| 15 |
stylecheck: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
steps: |
| 18 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 19 |
- run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }} |
| 20 |
- uses: yshui/git-clang-format-lint@27f3890c6655216edadcc2759110b9c127c74786 # v1.17 |
| 21 |
with: |
| 22 |
base: ${{ github.event.pull_request.base.sha }} |