Skip to content

RHEL-65784: CI: Enable code style chacking with clang-format #1

RHEL-65784: CI: Enable code style chacking with clang-format

RHEL-65784: CI: Enable code style chacking with clang-format #1

Workflow file for this run

name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: '.'
exclude: './VirtIO'
- check: 'VirtIO'
exclude: ''
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
run: |

Check failure on line 17 in .github/workflows/clang-format.yml

View workflow run for this annotation

GitHub Actions / clang-format Check

Invalid workflow file

The workflow is not valid. .github/workflows/clang-format.yml (Line: 17, Col: 12): Unrecognized named-value: 'check-path'. Located at position 1 within expression: check-path .github/workflows/clang-format.yml (Line: 21, Col: 7): Unexpected value 'with'
apt-get update
apt-get install --no-install-recommends -y clang-format-18
bash Tools/clang-format.sh ${{check-path}} "" ${{exclude-regex}}
with:
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}