Skip to content

RHEL-65784: CI: Enable code style checking with clang-format [CI-NO-BUILD] #4

RHEL-65784: CI: Enable code style checking with clang-format [CI-NO-BUILD]

RHEL-65784: CI: Enable code style checking with clang-format [CI-NO-BUILD] #4

Workflow file for this run

name: clang-format check
on: [push, pull_request]
jobs:
clang-format:
name: Code style 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 19 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: 19, Col: 12): Unrecognized named-value: 'CHECK_PATHpath'. Located at position 1 within expression: CHECK_PATHpath
apt-get update
apt-get install --no-install-recommends -y clang-format-18
bash Tools/clang-format.sh ${{CHECK_PATHpath}} "" ${{EXCLUDE_REGEX}}
env:
CHECK_PATH: ${{ matrix.path['check'] }}
EXCLUDE_REGEX: ${{ matrix.path['exclude'] }}